App({
onLaunch: function () {
// qcloud.clearSession(); //for test
// LocalUserDetail.clear(); //for test
//wx.removeStorageSync("user_detail"); //for test
},
onShow: function(options) {
qcloud.setLoginUrl(config.service.loginUrl);
qcloud.login({
success(result) {
getApp().globalData.userInfo = result;
},
fail(error) {
wx.showToast({
title: '登录失败',
duration: 2000
});
}
});
},
安卓手机上没有问题。
请检查服务器https证书的配置
具体是调用哪个接口时出现的问题?看你的例子中使用的都是qcloud对象,获取的是微信的用户信息吗?有问题的话请提供一下测试环境的iOS和微信版本号。
用微信开发工具和安卓手机都没有问题哦
ios版本 10.0.1 微信版本: 6.5.9
6.5.3版本以前的微信有问题。