debug接口添加env限制
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { isArray, isBoolean, isNumber, isString } from "underscore";
|
||||
import { BLOCK_OPEATE, DEBUG_MAGIC_WORD, GM_MAIL_TYPE, GUILD_AUTH, GUILD_STRUCTURE, LINEUP_NUM, MSG_TYPE } from "../consts";
|
||||
import { pvpEndParamInter } from "../pubUtils/interface";
|
||||
import { isDevelopEnv } from "./utilService";
|
||||
|
||||
export function checkRouteParam(route: string, msg: any) {
|
||||
switch(route) {
|
||||
@@ -1550,7 +1551,7 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
}
|
||||
case "role.heroHandler.addItem":
|
||||
{
|
||||
if(!checkNaturalNumbers(msg.id, msg.count)) return false;
|
||||
if(!isDevelopEnv() && !checkNaturalNumbers(msg.id, msg.count)) return false;
|
||||
break;
|
||||
}
|
||||
case 'activity.activityHandler.debugActivityMemory':
|
||||
@@ -1628,7 +1629,7 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
case "activity.gachaHandler.debugClearGachaRecord":
|
||||
case "battle.eventBattleHandler.debugRefEvent":
|
||||
{
|
||||
if (msg.magicWord !== DEBUG_MAGIC_WORD) return false;
|
||||
if (msg.magicWord !== DEBUG_MAGIC_WORD || !isDevelopEnv()) return false;
|
||||
break;
|
||||
}
|
||||
case "battle.comBattleHandler.getTeams":
|
||||
|
||||
Reference in New Issue
Block a user