@IgnoreAuth @RestController @RequestMapping(value="/wechat/portal") public class WeChatPortalController extends Object
Constructor and Description |
---|
WeChatPortalController() |
Modifier and Type | Method and Description |
---|---|
String |
auth(String signature,
String timestamp,
String nonce,
String echostr)
微信接入校验处理
|
String |
post(String requestBody,
String signature,
String timestamp,
String nonce,
String openid,
String encType,
String msgSignature)
微信消息处理
|
@GetMapping(produces="text/plain;charset=utf-8") public String auth(String signature, String timestamp, String nonce, String echostr)
signature
- 微信签名timestamp
- 时间戳nonce
- 随机数echostr
- 随机字符串@PostMapping(produces="application/xml; charset=UTF-8") public String post(@RequestBody String requestBody, String signature, String timestamp, String nonce, String openid, @RequestParam(name="encrypt_type",required=false) String encType, @RequestParam(name="msg_signature",required=false) String msgSignature)
requestBody
- 请求报文体signature
- 微信签名encType
- 加签方式msgSignature
- 微信签名timestamp
- 时间戳nonce
- 随机数Copyright © 2023. All rights reserved.