Skip to content

Commit

Permalink
🐞 fix(backend/user): nickName undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonBegonia committed Jul 27, 2021
1 parent 5d451af commit df8d5e1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ module.exports = class User {
if (!body.data?.userInfo) {
throw new UserError('获取用户信息失败,请检查您的 cookie !', 201, 200);
}
this.nickName = body.data?.userInfo.baseInfo.nickname || this.pt_pin;
}

#formatSetCookies(headers, body) {
Expand Down

0 comments on commit df8d5e1

Please sign in to comment.