团购:debug接口
This commit is contained in:
@@ -106,6 +106,8 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
case 'activity.treasureHuntHandler.getTreasureHuntActivity':
|
||||
case 'activity.vipRechargeMoneyHandler.getVipRechargeMoneyActivity':
|
||||
case 'activity.yuanbaoShopHandler.getShopActivity':
|
||||
case 'activity.groupShopHandler.getGroupShopPage':
|
||||
case 'activity.groupShopHandler.leaveGroupShopPage':
|
||||
{
|
||||
if(!checkNaturalNumbers(msg.activityId)) return false;
|
||||
break;
|
||||
@@ -406,6 +408,12 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
if(msg.count < 0 && msg.count > 100) return false
|
||||
break;
|
||||
}
|
||||
case 'activity.groupShopHandler.buy':
|
||||
{
|
||||
let { activityId, price, id, buyCnt } = msg;
|
||||
if(!checkNaturalNumbers(activityId, price, id, buyCnt)) return false;
|
||||
break;
|
||||
}
|
||||
case "battle.barrageHandler.getBarrageList":
|
||||
{
|
||||
if(!checkNaturalStrings(msg.rid)) return false;
|
||||
@@ -1638,6 +1646,9 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
case "guild.cityActivityHandler.debugStartHitGate":
|
||||
case "guild.cityActivityHandler.debugStopHitGate":
|
||||
case "guild.cityActivityHandler.debugTestAutoDeclare":
|
||||
case "activity.groupShopHandler.debugRefund":
|
||||
case "activity.groupShopHandler.debugSetSum":
|
||||
case "activity.groupShopHandler.debugClearCnt":
|
||||
{
|
||||
if (msg.magicWord !== DEBUG_MAGIC_WORD || !isDevelopEnv()) return false;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user