聊天:获得橙色武将推送系统消息
测试:增加删除武将等测试接口
This commit is contained in:
@@ -7,7 +7,7 @@ import { Application } from 'pinus';
|
||||
import {FrontendSession} from 'pinus';
|
||||
import { HeroModel } from './../../../db/Hero';
|
||||
import { resResult } from '../../../pubUtils/util';
|
||||
import { COM_BTL_QUALITY, ROLE_SELECT, HERO_SELECT, GUILD_SELECT, USER_GUILD_SELECT } from '../../../consts';
|
||||
import { COM_BTL_QUALITY, ROLE_SELECT, HERO_SELECT, GUILD_SELECT, USER_GUILD_SELECT, DEBUG_MAGIC_WORD } from '../../../consts';
|
||||
import { getAp } from '../../../services/actionPointService';
|
||||
import { ItemModel } from '../../../db/Item';
|
||||
import { chackFunOpenWhenLogin } from '../../../services/funcSwitchService';
|
||||
@@ -206,7 +206,7 @@ export class EntryHandler {
|
||||
*/
|
||||
async debugQueryToken(msg: { tel: string, magicWord: string }, session: FrontendSession) {
|
||||
const { tel, magicWord } = msg;
|
||||
if (magicWord !== 'zyz666server518') {
|
||||
if (magicWord !== DEBUG_MAGIC_WORD) {
|
||||
return resResult(STATUS.TOKEN_ERR);
|
||||
}
|
||||
const token = await UserModel.findTokenByTel(tel);
|
||||
|
||||
Reference in New Issue
Block a user