Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
a01e5f67
Commit
a01e5f67
authored
Mar 03, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改操作日志过滤
parent
2a89db71
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
base-manager/doc/api.md
base-manager/doc/api.md
+1
-1
base-manager/src/main/java/com/mortals/xhx/busiz/web/MidSignApiController.java
.../java/com/mortals/xhx/busiz/web/MidSignApiController.java
+5
-1
No files found.
base-manager/doc/api.md
View file @
a01e5f67
...
...
@@ -11518,7 +11518,7 @@ dict|object|字典对象
参数名称|类型|必填|描述
:---|:---|:---|:------
body|String|是|请求参数体
**请求样例:**
```
...
...
base-manager/src/main/java/com/mortals/xhx/busiz/web/MidSignApiController.java
View file @
a01e5f67
...
...
@@ -70,12 +70,14 @@ public class MidSignApiController {
@PostMapping
(
value
=
"sign"
)
@UnAuth
public
Rest
<
SignResp
>
midSign
()
{
public
Rest
<
SignResp
>
midSign
(
@RequestBody
String
body
)
{
SignResp
signResp
=
new
SignResp
();
try
{
Map
<
String
,
String
>
headerMap
=
new
HashMap
<>();
headerMap
.
put
(
"appId"
,
appId
);
headerMap
.
put
(
"appKey"
,
appKey
);
headerMap
.
put
(
"body"
,
body
);
String
timeStamp
=
System
.
currentTimeMillis
()
+
""
;
headerMap
.
put
(
"timeStamp"
,
timeStamp
);
String
nonce
=
RandomUtil
.
randomNumbers
(
12
);
...
...
@@ -93,7 +95,9 @@ public class MidSignApiController {
signSb
.
append
(
params
.
getKey
()).
append
(
"="
).
append
(
params
.
getValue
()
+
""
).
append
(
"&"
);
}
String
signStr
=
signSb
.
substring
(
0
,
signSb
.
length
()
-
1
);
log
.
info
(
"签名源字符串: "
+
signStr
);
String
sign
=
EncryptionUtils
.
SHA256
(
signStr
);
log
.
info
(
"签名计算结果: "
+
sign
);
signResp
.
setSign
(
sign
);
return
Rest
.
ok
(
signResp
);
}
catch
(
Exception
e
)
{
...
...
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