测试:调整

This commit is contained in:
luying
2021-09-18 18:39:00 +08:00
parent 8e1f30397f
commit 64c27f5705
5 changed files with 18 additions and 13 deletions

View File

@@ -299,6 +299,16 @@ export class EntryHandler {
return resResult(STATUS.SUCCESS, { user });
}
async debugQueryTokenByTel(msg: { tel: string, magicWord: string }, session: FrontendSession) {
const { tel, magicWord } = msg;
if (magicWord !== DEBUG_MAGIC_WORD) {
return resResult(STATUS.TOKEN_ERR);
}
const user = await UserModel.findTokenByTel(tel);
console.log('debugQueryTokenByTel got user:', user);
return resResult(STATUS.SUCCESS, { user });
}
async debugPushRefToOnlineUsers(msg: { magicWord: string }, session: FrontendSession) {
const { magicWord } = msg;
console.log('debugQueryTokenById msg:', msg);