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

上传代码后,设置为体验版,打开小程序报错请求后端服务异常 #2

Open
wangdgui opened this issue Sep 25, 2024 · 2 comments

Comments

@wangdgui
Copy link

大佬,我上传代码后,设置为体验版,打开小程序就一直请求后端服务异常,我开启调试模式就正常。
小程序的base.ts这个配置文件,我都填写的后端服务地址了
const GDEnvs = {
develop: 'https://wodding.xxxx',
trial: 'https://wodding.xxxx',
release: 'https://wodding.xxxx',
}

可用帮忙解答一下嘛,感谢大佬

@MSamor
Copy link
Owner

MSamor commented Sep 25, 2024

开启调试模式就正常是因为你没有添加你的域名信息到微信的后台,不是可信任的。
解决办法就是要微信公众平台小程序管理里面添加请求地址信息

@wangdgui
Copy link
Author

好的,已解决了

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

2 participants