tencentyun / wafer-session-server

Wafer - 企业级微信小程序全栈方案
https://github.com/tencentyun/wafer
Other
72 stars 45 forks source link

坑太多了 #16

Open haydncho opened 6 years ago

haydncho commented 6 years ago

问题这么多,好久没维护了,建议关掉吧。

lahvey commented 5 years ago

借坑记录一下

https://github.com/tencentyun/wafer-session-server/blob/384314a37bd7a2852bc1056d4bc1dfc3ea8195dc/application/controllers/qcloud/minaauth/Auth.php#L50

根据文档https://developers.weixin.qq.com/miniprogram/dev/api/code2Session.html?search-key=jscode2session 这个接口没有返回expires_in,所以总是返回鉴权失败,但有些帐号又会返回expires_in,结果就不确定。 需要改成

                if (isset($json_message['openid']) && isset($json_message['session_key'])) {