小程序
小游戏
企业微信
微信支付
扫描小程序码分享
有部分手机点击“授权微信用户信息”,无法成功授权。现发现:
【机型:iphone6s;系统版本:ios11.1.1;微信版本:7.0.11】
【机型:iphone11;系统版本:ios13.3;微信版本:7.0.11】
【机型:iphone 8;系统版本:ios11.3.1 ;微信版本:7.0.11】
【机型:iphone X;系统版本:ios12.0.1 ;微信版本:7.0.11】
【机型:mate 10;系统版本:android10 ;微信版本:7.0.12】
3 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
请求的接口配置白名单了吗? 如果是请求的接口是测试接口,不是https的话 在开发者工具中是正常的,开启了不校验,如果是用手机查看需要是 https的接口 要不然无法请求的
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
你好,这是你的业务bug,咨询下后端是否有日志。
谢邀:
使用过程中发现无此问题,
你代码怎么写的?
console.log('用户点击确定')
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
请求的接口配置白名单了吗? 如果是请求的接口是测试接口,不是https的话 在开发者工具中是正常的,开启了不校验,如果是用手机查看需要是 https的接口 要不然无法请求的
你好,这是你的业务bug,咨询下后端是否有日志。
谢邀:
使用过程中发现无此问题,
你代码怎么写的?
GetUserInfo(e){
if(e.mp.detail.errMsg=='getUserInfo:fail auth deny') return false
console.log(e)
let userInfo = e.mp.detail.userInfo
wx.setStorageSync('userInfo',userInfo)
var _this = this
wx.showLoading({
title: '授权中',
})
wx.login({
success(res){
if (res.code) {
// 发起网络请求
getToken({code:res.code,...userInfo}).then(res=>{
// console.log(res)
if(res.statusCode==200){
let token= res.data
if(token){
wx.setStorageSync('token',token)
// console.log(_this.num)
wx.hideLoading()
if(_this.num==1){
wx.switchTab({
url: '/pages/user/main'
})
}else{
wx.navigateBack({
delta: 1
})
}
}
}
})
} else {
console.log('登录失败!' + res.errMsg)
}
}
})
},
}
}
console.log('用户点击确定')