Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

登录失败 #44

Open
hfkai opened this issue May 11, 2020 · 9 comments
Open

登录失败 #44

hfkai opened this issue May 11, 2020 · 9 comments

Comments

@hfkai
Copy link

hfkai commented May 11, 2020

image

@iamxjb
Copy link
Owner

iamxjb commented May 12, 2020

这个错误可能是服务器响应慢导致的问题

@hfkai
Copy link
Author

hfkai commented May 18, 2020

响应慢?试了好多次了,每次都报这个错

@hfkai
Copy link
Author

hfkai commented May 18, 2020

这就是接口有问题

@iamxjb
Copy link
Owner

iamxjb commented May 18, 2020

注销重新登录

@hfkai
Copy link
Author

hfkai commented May 19, 2020

我就没登录上去,怎么注销?

@hfkai
Copy link
Author

hfkai commented May 19, 2020

缓存都清了好几遍了

@Tangel
Copy link

Tangel commented May 19, 2020

看着像是获取 js_code 时获取了一个 invalid code ,第二次则直接使用了这个 invalid code 导致出现 code been used

我个人判断是你没注册自己的 APPID 而是使用了测试用的 APPID ,然后登陆时使用了项目自带的后端接口,导致 APPID 不一致造成的。

经过测试,解决办法是你先申请一个 APPID ,再将项目的 APPID 和后端插件(该项目对应的 WordPress 插件)改成你申请的 APPID 即可。

@hfkai
Copy link
Author

hfkai commented May 26, 2020

后端插件的appid要怎么改

@Tangel
Copy link

Tangel commented May 26, 2020

后端插件的appid要怎么改

可以参考一下这里:

https://github.com/iamxjb/rest-api-to-miniprogram

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants