使用测试号获取到auth.code2Session的数据包,其中无errorcode

小程序 文章 2021-01-22 17:21 821 0 全屏看文

AI助手支持GPT4.0

使用测试号获取到auth.code2Session的数据包,其中无errorcodeUse the test number to get the data packet of auth.code2Session without errorcode

使用测试号获取到auth.code2Session的数据包,其中无errorcode

https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html

按照文档中的请求地址调用,得到以下数据。

data: 

   { session_key: 'PaDAnsMgXfUOyNiWMb7S3w==',

     openid: 'o9zcIxNpyCibsu8M4TADYRSuiVRQ' } 

其中缺少文档中提到的errorcode信息


https://developers.weixin.qq.com/miniprogram/dev/api-backend/open-api/login/auth.code2Session.html Call according to the request address in the document to get the following data. data: { session_ Key: 'padansmgxfuoyniwmb7s3w = =', openid: 'o9zcixnpycibsu8m4tadyrsuivrq'} the errorcode information mentioned in the document is missing

回答:

จุ๊บ:

这不应该是错误信息嘛?返回正常的话就不返回啊

Mr.Zhao:

Metalartis:

好家伙,原来这个问题已经被报告好多次了。。。请求结果和文档对不上,看来是微信常态。

https://developers.weixin.qq.com/community/develop/doc/000ac841dac318aaa2f8bb6865b000

https://developers.weixin.qq.com/community/develop/doc/0004ca759dc4805a9069aa2d05b000

https://developers.weixin.qq.com/community/develop/doc/0004aa8572ce189ee7591d1ac51800

随手就是3例,还有更多。。。

算了,请当我没问过。。

-EOF-

AI助手支持GPT4.0