Commit 3564448e by 高淑倩

desc

parent 396104f9
......@@ -47,7 +47,8 @@ class WXService extends Http {
this.setPageLoadStatus();
wx2my.hideLoading();
}).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) {
this.getUserInfoLimitCount = 1;
} else {
......@@ -147,7 +148,7 @@ class WXService extends Http {
login() {
return new Promise((resolve, reject) => {
my.getAuthCode({
scopes: ['auth_user','auth_ecard'],
scopes: ['auth_base','auth_ecard'],
success: (res) => {
resolve(res);
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