(节日活动): 接口校验

This commit is contained in:
luying
2023-05-23 19:58:53 +08:00
parent 48eb31d55b
commit 6543d74555
2 changed files with 13 additions and 1 deletions

View File

@@ -127,6 +127,7 @@ export function checkRouteParam(route: string, msg: any) {
case 'activity.bindPhoneHandler.receiveReward':
case 'activity.bindPhoneHandler.receiveGiftCode':
case 'activity.bindPhoneHandler.skipOutSide':
case 'activity.dragonBoatHandler.getData':
{
if(!checkNaturalNumbers(msg.activityId)) return false;
break;
@@ -2003,6 +2004,17 @@ export function checkRouteParam(route: string, msg: any) {
if(!isBoolean(msg.hasComment)) return false;
break;
}
case 'activity.dragonBoatHandler.gameStart':
case 'activity.dragonBoatHandler.gameEnd':
{
if(!checkNaturalNumbers(msg.activityId, msg.id)) return false;
break;
}
case 'activity.dragonBoatHandler.buyCnt':
{
if(!checkNaturalNumbers(msg.activityId, msg.count)) return false;
break;
}
case 'activity.activityHandler.debugActivityMemory':
case 'activity.popUpShopHandler.debugPushPopUpShop':
case 'activity.popUpShopHandler.debugPushPopUpInterval':