...
|
...
|
@@ -108,6 +108,7 @@ function wechatUserIsBind(unionID, nickName) { |
|
|
userInfo.uid = data.data.uid;
|
|
|
userInfo.sessionKey = data.data.session_key;
|
|
|
userInfo.wechat = app.globalData.userInfo.wechat || '';
|
|
|
console.log('wechatUserIsBind=>', userInfo);
|
|
|
|
|
|
app._removeSync('disableAutoLogin');
|
|
|
app.setUserInfo(userInfo);
|
...
|
...
|
@@ -285,6 +286,7 @@ function getPhoneNumber(e) { |
|
|
userInfo.ssouid = res.data.ssouid;
|
|
|
userInfo.sessionKey = res.data.session_key;
|
|
|
userInfo.wechat = app.globalData.userInfo.wechat || '';
|
|
|
console.log('getPhoneNumber => ', userInfo);
|
|
|
|
|
|
app._removeSync('disableAutoLogin');
|
|
|
app.setUserInfo(userInfo);
|
...
|
...
|
@@ -331,7 +333,7 @@ function getUserInfo(e) { |
|
|
});
|
|
|
} else {
|
|
|
console.log(e.detail);
|
|
|
let userInfo = Object.assign(app.globalData.userInfo, { wechat: e.detail.userInfo});
|
|
|
let userInfo = Object.assign(app.globalData.userInfo || {}, { wechat: e.detail.userInfo});
|
|
|
|
|
|
app.setUserInfo(userInfo);
|
|
|
}
|
...
|
...
|
|