Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
蓝万生
sign
Commits
453abf94
Commit
453abf94
authored
3 years ago
by
蓝万生
🏀
Browse files
Options
Download
Email Patches
Plain Diff
1. 增加Post支持;2.补充说明
parent
781930ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
README.md
README.md
+4
-0
src/main/java/com/lylb/epw/sign/SignController.java
src/main/java/com/lylb/epw/sign/SignController.java
+5
-4
No files found.
README.md
0 → 100644
View file @
453abf94
# 获取签名
通过SignApplication启动程序(或者打包成jar)。
*
启动后GET或POST访问
[
http://localhost:8080/sign
](
)获取签名
*
传递参数和实际传递给接口的参数一致(除sign参数)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/main/java/com/lylb/epw/sign/SignController.java
View file @
453abf94
...
...
@@ -13,12 +13,13 @@ public class SignController {
/**
* 对请求进行签名
*
* @param query request query
* @param body request body
* @param body
request body
* @return 签名值
*/
@
Ge
tMapping
public
String
sign
(
@RequestParam
Map
<
String
,?>
query
,
@Nullable
@RequestBody
Object
body
){
return
computeSign
(
query
,
body
);
@
Reques
tMapping
(
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
public
String
sign
(
@RequestParam
Map
<
String
,
?>
query
,
@Nullable
@RequestBody
Object
body
)
{
return
computeSign
(
query
,
body
);
}
}
This diff is collapsed.
Click to expand it.
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