@RestController
@RequestMapping(value="/wechat/mini")
public class WeChatMiniController
extends io.xiaper.rest.controller.v1.BaseController
| 构造器和说明 |
|---|
WeChatMiniController() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
authGet(String token,
String signature,
String timestamp,
String nonce,
String echostr)
验证:
https://wechat.bytedesk.com/wechat/mini/push/201810292301591
|
String |
login(Principal principal,
String code)
wx.login 携带 code 参数
|
String |
post(String token,
String requestBody,
String msgSignature,
String encryptType,
String signature,
String timestamp,
String nonce)
https://wechat.bytedesk.com/wechat/mini/push/201810292301591
|
@GetMapping(value="/push/{token}")
public String authGet(@PathVariable
String token,
@RequestParam(name="signature",required=false)
String signature,
@RequestParam(name="timestamp",required=false)
String timestamp,
@RequestParam(name="nonce",required=false)
String nonce,
@RequestParam(name="echostr",required=false)
String echostr)
token - tokensignature - signtimestamp - timenonce - nonceechostr - echo@PostMapping(value="/push/{token}")
public String post(@PathVariable
String token,
@RequestBody
String requestBody,
@RequestParam(value="msg_signature")
String msgSignature,
@RequestParam(value="encrypt_type")
String encryptType,
@RequestParam(value="signature")
String signature,
@RequestParam(value="timestamp")
String timestamp,
@RequestParam(value="nonce")
String nonce)
token - tokenrequestBody - bodymsgSignature - sigencryptType - encsignature - sigtimestamp - timenonce - nonceCopyright © 2019. All rights reserved.