Closed callmesoul closed 4 years ago
let signature = ctx.request.query.signature,//微信加密签名 timestamp = ctx.request.query.timestamp,//时间戳 nonce = ctx.request.query.nonce,//随机数 echostr = ctx.request.query.echostr;//随机字符串 console.log('signature', signature) console.log('timestamp', timestamp) console.log('nonce', nonce) console.log('echostr', echostr) const result = WeChat. (signature, timestamp,nonce, echostr) console.log('result', result) ctx.send(WeChat.checkSignature(signature, timestamp,nonce, echostr));
经打印确认 result 时跟 echostr 一样的
外网映射问题,点多几次就好了
经打印确认 result 时跟 echostr 一样的