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

android打包后,使用微信API,("wx.request()")调不到后台接口数据 #22

Open
mingsong2 opened this issue Jan 2, 2018 · 3 comments

Comments

@mingsong2
Copy link

使用hera对小程序打包成android应用后,静态页面可以正常显示,但是调用后台接口出现错误,hera可以使用“wx.request()”来调用后台接口吗?

dingtalk20180102162411

dingtalk20180102162526

@IOriens
Copy link
Contributor

IOriens commented Jan 2, 2018

请求接口应该是没问题的,你可以用 chrome://inspect/#devices 调试看下有没有返回值。

@mingsong2
Copy link
Author

mingsong2 commented Jan 2, 2018 via email

@pgfxm
Copy link
Contributor

pgfxm commented Jan 2, 2018

目前对wx.login接口的处理方式是自定义一个用于非微信环境使用的登录页面,你可以看一下hera网站文档的 其它-微信登录与跨域 这项,应该能帮上你,你可以加入我们群方便沟通

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