Commit 3564448e by 高淑倩

desc

parent 396104f9
...@@ -47,7 +47,8 @@ class WXService extends Http { ...@@ -47,7 +47,8 @@ class WXService extends Http {
this.setPageLoadStatus(); this.setPageLoadStatus();
wx2my.hideLoading(); wx2my.hideLoading();
}).catch(res => { }).catch(res => {
if (res.msg && res.msg.indexOf('未登录') > -1) { console.log('res.desc', res)
if (res.data && res.data.desc.indexOf('未登录') > -1) {
if (!this.getUserInfoLimitCount) { if (!this.getUserInfoLimitCount) {
this.getUserInfoLimitCount = 1; this.getUserInfoLimitCount = 1;
} else { } else {
...@@ -147,7 +148,7 @@ class WXService extends Http { ...@@ -147,7 +148,7 @@ class WXService extends Http {
login() { login() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
my.getAuthCode({ my.getAuthCode({
scopes: ['auth_user','auth_ecard'], scopes: ['auth_base','auth_ecard'],
success: (res) => { success: (res) => {
resolve(res); resolve(res);
wx2my.setStorageSync('_loginCode', res.authCode); wx2my.setStorageSync('_loginCode', res.authCode);
......
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