Commit 3e7b9178 by danmo

fix

1 parent 099a81cd
...@@ -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");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!