Commit ba9e84d0 authored by 喻天's avatar 喻天

fix: 广州修改

parent 92e9c59a
Pipeline #78837 passed with stages
......@@ -40,36 +40,7 @@ class Login {
}
gzlogin(userPhone) {
const self = this;
appService
.authorizationToken({
loginName: userPhone,
type: 'phone',
})
.then(res => {
if (res.code === 0) {
const { data } = res;
self.updateConfig &&
self.updateConfig(
Object.assign({}, self.globalConfig, {
access_token: data.access_token,
token: data.user_token,
}),
);
return data;
}
message.error({
duration: 3,
content: `授权失败:${res.msg}`,
});
self.events.emit('loginError', res.msg);
return Promise.reject(res);
})
.then(res => {
self.gztransformLoginHander(res);
});
this.login(userPhone, '', userPhone, false, SERVICE_APP_LOGIN_MODE.phone);
}
gztransformLoginHander(response, isRememberPWD, pwd) {
......@@ -186,7 +157,7 @@ class Login {
) {
self.getIpone().then(v => {
if (v.code === 0) {
this.gzlogin(v.data.userMobile);
this.gzlogin(v.data.userMobile || v.data.loginName);
} else {
this.goLogin();
}
......
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