Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3e7b9178
authored
Feb 07, 2021
by
danmo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix
1 parent
099a81cd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCallBackController.java
linkwe-admin/src/main/java/com/linkwechat/web/controller/wecom/WeCallBackController.java
View file @
3e7b917
...
@@ -37,7 +37,7 @@ public class WeCallBackController extends CommonController {
...
@@ -37,7 +37,7 @@ public class WeCallBackController extends CommonController {
@Value
(
"${wecome.callBack.encodingAesKey}"
)
@Value
(
"${wecome.callBack.encodingAesKey}"
)
private
String
encodingAesKey
;
private
String
encodingAesKey
;
@PostMapping
(
value
=
"/recive"
,
produces
=
{
"application/xml;charset=UTF-8"
}
)
@PostMapping
(
value
=
"/recive"
)
public
String
recive
(
@RequestBody
String
msg
,
@RequestParam
(
name
=
"msg_signature"
)
String
signature
,
public
String
recive
(
@RequestBody
String
msg
,
@RequestParam
(
name
=
"msg_signature"
)
String
signature
,
String
timestamp
,
String
nonce
)
{
String
timestamp
,
String
nonce
)
{
WxCryptUtil
wxCryptUtil
=
new
WxCryptUtil
(
token
,
encodingAesKey
,
appIdOrCorpId
);
WxCryptUtil
wxCryptUtil
=
new
WxCryptUtil
(
token
,
encodingAesKey
,
appIdOrCorpId
);
...
@@ -61,7 +61,7 @@ public class WeCallBackController extends CommonController {
...
@@ -61,7 +61,7 @@ public class WeCallBackController extends CommonController {
}
}
}
}
@GetMapping
(
value
=
"/recive"
,
produces
=
{
"application/xml;charset=UTF-8"
}
)
@GetMapping
(
value
=
"/recive"
)
public
String
recive
(
HttpServletRequest
request
)
{
public
String
recive
(
HttpServletRequest
request
)
{
// 微信加密签名
// 微信加密签名
String
sVerifyMsgSig
=
request
.
getParameter
(
"msg_signature"
);
String
sVerifyMsgSig
=
request
.
getParameter
(
"msg_signature"
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment