python - 微信公众号接入url验证返回"ret":-302,"err_msg":"verify token fail"
伊谢尔伦
伊谢尔伦 2017-04-17 16:17:05
0
3
1730

下图是我用python进行的验证,测试显示已经返回echostr了,但是微信那边一直显示token验证失败,求指导~~
返回的错误是{"baseresp":{"ret":-302,"errmsg":"verify token fail"}}
但是我的token设置和代码里是一样的,已经确认了

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(3)
阿神

Reply cannot use 'return' directly, but needs to call make_response

阿神

I also encountered this problem recently. In fact, the server did not receive the WeChat request at all. After struggling for a long time, it turns out that the server path of the WeChat official account only supports second-level domain names, such as xxx.xxx.com, xxx.xxx.xxx. com will throw -302 error

大家讲道理

Have you solved it? How to solve it? I reported this error, I wonder if it is the same as yours {"base_resp":{"ret":200302,"err_msg":"verify token fail"}}

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!