团购:debug接口

This commit is contained in:
luying
2022-10-09 17:18:26 +08:00
parent 1f196a5d36
commit a88d8160cd
8 changed files with 90 additions and 12 deletions

View File

@@ -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;