校验:添加接口校验
This commit is contained in:
@@ -352,7 +352,6 @@ export class GuildTrainHandler {
|
||||
//购买挑战次数
|
||||
async purchaseTrainCount(msg: guildInter & { count: number }, session: BackendSession) {
|
||||
let { count, myUserGuild } = msg;
|
||||
if( count < 0) return resResult(STATUS.WRONG_PARMS);
|
||||
const roleId: string = session.get('roleId');
|
||||
const serverId: number = parseInt(session.get('serverId'));
|
||||
const sid: string = session.get('sid');
|
||||
|
||||
Reference in New Issue
Block a user