- Code 换取 SessionKey 失败怎么修改?
wx.request({ url:url, method: 'post', data: param, header: { 'Content-Type': 'application/x-www-form-urlencoded' }, success:(res) =>{ wx.hideLoading(); if(res.data.statusCode == 200){ let userInfo = res.data.data.userInfo; let kefu = res.data.data.kefu; wx.setStorageSync('openid', userInfo.openid); wx.setStorageSync('userInfo', userInfo); wx.setStorageSync('userid',userInfo.id); that.setData({ kefu:kefu, }); if(userInfo.type == 0){ let token = userInfo.token; if(token !=null){ wx.setStorageSync('token', userInfo.token); that.setData({ userLogin:true, hasUserInfo:true, }) wx.navigateTo({ url: '../index/index', }) }else{ that.setData({ wechatLogin:true, userLogin:false, }) } }else{ that.setData({ wechatLogin:true, userLogin:false, }) } }else{ app.common._errorShow("登录失败"); } } })
2025-11-07 - getUserProfile获取不到昵称和头像怎么办?
getUserProfile 获取不到昵称和头像
2023-11-14 - <scroll-view class="item" scroll-x="true">横向不滚动?
<scroll-view class="item" scroll-x="true">横向不滚动
2023-11-08 - 为什么已经更新了隐私信息还是不能获取手机号?
getPhoneNumber:fail api scope is not declared in the privacy agreement,errno:112(env: Windows,mp,1.06.2310080; lib: 3.1.5)
2023-11-06 - 工具不能编辑代码?
工具不能编辑代码
2023-11-06 - 微信开发者工具为什么复制不了?
微信开发者工具为什么复制不了[图片]
2023-09-25 - H5内嵌公众号网页?
mp.weixin.qq.com 拒绝了我们的连接请求
2023-04-27