登录:实名认证

This commit is contained in:
luying
2021-03-03 20:41:31 +08:00
parent 0e7fa64393
commit 525bfd36bc
13 changed files with 361 additions and 2 deletions

View File

@@ -169,7 +169,7 @@ export default class User extends BaseModel {
}
public static async findUserByToken(token: string, lean = true) {
const user: UserType = await UserModel.findOne({ token }).select('uid token serverType auth tel userCode').lean(lean);
const user: UserType = await UserModel.findOne({ token }).select('uid token serverType auth tel userCode pkgName').lean(lean);
return user;
}