Commit ade6256b authored by liuxinjun's avatar liuxinjun

去掉本地缓存时间限制

parent 13388f2f
......@@ -733,6 +733,15 @@ var sdk = {
}
})
self.button.onTap((res1) => {
if(!self.getItem("wxauth"))
{
wx.showToast({title: '登录中...',icon:'loading',duration: 8});
}else
{
callback && callback(data.d);
return;
}
// 处理用户拒绝授权的情况
console.log('授权按钮',res1);
if (res1.errMsg.indexOf('auth deny') > -1 || res1.errMsg.indexOf('auth denied') > -1 ) {
......@@ -740,7 +749,7 @@ var sdk = {
// callback && callback(false)
return;
}
wx.showToast({title: '登录中...',icon:'loading',duration: 8});
wx.getSetting({
success(auths){
if(auths.authSetting["scope.userInfo"]){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment