html52.com
我爱小程序-开发者交流社区

同一个小程序之前的手机可以登录 现在换个手机就不行了这是官方bug吗?

现在手机型号:荣耀 20i  微信版本:7..0.9


登录授权代码

UserInfofunction(){

var that this

var pid = appglobalData.pid

var referral_code = appglobalData.referral_code

var task_id = appglobalDatatask_id

var is_importance = appglobalData.is_importance

var user_id = wxgetStorageSync("userInfo:user_id")

if (that.datascene && user_id

that kkk ()

} else{

wxgetSetting({

success :function res =>

if ( ! res.authSetting ['scope.userInfo'])

wx:showModal ({

title:' 提示'

content: 请允许获取您的信息',

showCancel 'false',

success : function res =>{

if (res.confirm)

wx : openSetting ({

success ; function res =>

wx : getUserInfo({

success : function res =>{

tha . tsetData({

avatar : res . userInfo . avatarUrl

name : res . userInfo . nickName

})

wx : setStorageSync('userInfo ' resuserInfo ')

that . sendServerUseInfo();

})

},

fail : function res =>{

}

})

})

} else { //点击同意授权后

that verifypid (referral_code task_id is_importance) // 获取 token 及传参

wx : setStorageSync(''userInfo' edetailuserInfo');

that . setData({

avatar : edetailuserInfo . avatarUrl

name : edetailuserInfo . nickName

})

},

})

},

网友回复

老张:

我们换手机后可以正常登录,所以判断不是官方BUG。

小满:。。。我猜不是小程序打不开。登录不是应该是代码的问题
仙森ღ₅₂₀¹³¹⁴:

你让他删除小程序 再打开看看是否可以登录。如果是 肯定是你写了bug

o0o有脾气的酸奶:

emm...

这问题没法回答

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付