mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 14:10:29 +08:00
修复第一次登录,user_info 表 loginType 保存的值不对的问题
This commit is contained in:
parent
82e161ef38
commit
1b2de0ba70
@ -185,11 +185,10 @@ export class UserLoginService extends BaseService {
|
|||||||
if (wxInfo) {
|
if (wxInfo) {
|
||||||
wxUserInfo.id = wxInfo.id;
|
wxUserInfo.id = wxInfo.id;
|
||||||
}
|
}
|
||||||
await this.userWxEntity.save({
|
return this.userWxEntity.save({
|
||||||
...wxUserInfo,
|
...wxUserInfo,
|
||||||
type,
|
type,
|
||||||
});
|
});
|
||||||
return wxUserInfo;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -230,6 +229,7 @@ export class UserLoginService extends BaseService {
|
|||||||
nickName: wxUserInfo.nickName,
|
nickName: wxUserInfo.nickName,
|
||||||
avatarUrl,
|
avatarUrl,
|
||||||
gender: wxUserInfo.gender,
|
gender: wxUserInfo.gender,
|
||||||
|
loginType: wxUserInfo.type,
|
||||||
};
|
};
|
||||||
await this.userInfoEntity.insert(userInfo);
|
await this.userInfoEntity.insert(userInfo);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user