✨ feat(活动): 小游戏
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user