feat(活动): 小游戏

This commit is contained in:
luying
2023-03-17 16:48:23 +08:00
parent 04cecc2d5d
commit 3669d557a7
14 changed files with 565 additions and 10 deletions

View File

@@ -120,6 +120,7 @@ export function checkRouteParam(route: string, msg: any) {
case 'activity.groupShopHandler.getGroupShopPage':
case 'activity.groupShopHandler.leaveGroupShopPage':
case 'activity.forgeHandler.getForgeActivity':
case 'activity.miniGameHandler.getMiniGameActivity':
{
if(!checkNaturalNumbers(msg.activityId)) return false;
break;
@@ -442,6 +443,35 @@ export function checkRouteParam(route: string, msg: any) {
if(!checkNaturalNumbers(activityId, id, count)) return false;
break;
}
case 'activity.miniGameHandler.gameStart':
{
if(!checkNaturalNumbers(msg.activityId)) return false;
break;
}
case 'activity.miniGameHandler.gameEnd':
{
let { activityId, gameCode, score } = msg;
if(!checkNaturalNumbers(activityId, score)) return false;
if(!checkNaturalStrings(gameCode)) return false;
break;
}
case 'activity.miniGameHandler.buyCnt':
{
let { activityId, count } = msg;
if(!checkNaturalNumbers(activityId, count)) return false;
break;
}
case 'activity.miniGameHandler.receiveBox':
{
let { activityId, boxId } = msg;
if(!checkNaturalNumbers(activityId, boxId)) return false;
break;
}
case 'activity.miniGameHandler.getRanks':
{
if(!checkNaturalNumbers(msg.activityId)) return false;
break;
}
case "battle.barrageHandler.getBarrageList":
{
if(!checkNaturalStrings(msg.rid)) return false;