Skip to content

Commit

Permalink
🐞 fix(): 修复删除账号通知昵称 pin 未定义
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonBegonia committed Jul 29, 2021
1 parent 009b143 commit 52ee477
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ module.exports = class User {
}
this.eid = body.data._id;
this.timestamp = body.data.timestamp;
message = `添加成功,可以愉快的白嫖啦 ${this.nickName}`;
message = `注册成功,${this.nickName}`;
this.#sendNotify('Ninja 运行通知', `用户 ${this.nickName}(${decodeURIComponent(this.pt_pin)}) 已上线`);
}
} else {
Expand Down Expand Up @@ -240,6 +240,7 @@ module.exports = class User {
}

async delUserByEid() {
await this.getUserInfoByEid();
const body = await delEnv(this.eid);
if (body.code !== 200) {
throw new UserError(body.message || '删除账户错误,请重试', 240, body.code || 200);
Expand Down

0 comments on commit 52ee477

Please sign in to comment.