描述:当第一次或者是要去修改URL时再次提交 会报Token校验失败,请检查确认 。
Token校验失败,请检查确认 微信-消息推送

 原因:点击提交微信会发送get请求到上面填写的URL上

查看微信文档,当发送get请求时,请原样返回 echostr 参数内容。

参考链接:https://developers.weixin.qq.com/miniprogram/dev/framework/server-ability/message-push.html

Token校验失败,请检查确认 微信-消息推送

此时先把代码修改一下重新发到服务器上:

 Token校验失败,请检查确认 微信-消息推送

 直接return echostr;,不用解密,直接获取到echostr返回。然后在微信后台点击确认,就可通过。

 

相关文章:

  • 2021-07-27
  • 2021-06-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
猜你喜欢
  • 2022-01-02
  • 2022-12-23
  • 2021-12-30
  • 2021-08-01
  • 2021-12-06
  • 2021-12-08
相关资源
相似解决方案