Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
member-api
Commits
000d52f4
Commit
000d52f4
authored
Aug 30, 2018
by
曲欣亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改BUG
parent
36eb86e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
LanguageController.java
src/main/java/com/egolm/lang/LanguageController.java
+4
-0
SigUtil.java
src/main/java/com/egolm/lang/config/interceptor/SigUtil.java
+4
-1
No files found.
src/main/java/com/egolm/lang/LanguageController.java
View file @
000d52f4
...
...
@@ -21,6 +21,7 @@ import com.alibaba.fastjson.JSON;
import
com.egolm.common.GsonUtil
;
import
com.egolm.common.StringUtil
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.lang.config.XException
;
import
com.egolm.lang.model.ContentArgs
;
import
com.egolm.lang.service.LanguageService
;
import
com.egolm.lang.service.TranslateService
;
...
...
@@ -233,6 +234,9 @@ public class LanguageController {
})
public
Object
getTreeByLink
(
String
sTopLink
)
{
String
sTopID
=
service
.
getNodeIDByLink
(
sTopLink
);
if
(
StringUtil
.
isBlank
(
sTopID
))
{
throw
new
XException
(
"找不到节点["
+
sTopLink
+
"]"
);
}
List
<
Map
<
String
,
Object
>>
list
=
null
;
if
(
sTopID
==
null
)
{
list
=
service
.
getListAll
();
...
...
src/main/java/com/egolm/lang/config/interceptor/SigUtil.java
View file @
000d52f4
...
...
@@ -16,6 +16,7 @@ public class SigUtil {
String
vsig
=
StringUtil
.
toMD5HexString
(
queryString
+
secret
);
return
vsig
;
}
public
static
void
main
(
String
[]
args
)
{
String
appid
=
"44EB5B79174D45F48BF32C09E6F0C4AA"
;
String
secret
=
"4117B10F6D48494595EE5D567333BB32"
;
...
...
@@ -24,6 +25,8 @@ public class SigUtil {
map
.
put
(
"sDocument"
,
"请刷银行卡"
);
map
.
put
(
"sLink"
,
"APOS/BankCardForm"
);
String
sig
=
sig
(
map
,
secret
);
System
.
out
.
println
(
sig
);
map
.
put
(
"sig"
,
sig
);
String
result
=
HttpUtil
.
post
(
"http://10.10.0.84:8090/lang/api/translate"
,
map
);
System
.
out
.
println
(
result
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment