✨ feat(活动): 节日活动-火神祭祀
This commit is contained in:
@@ -119,6 +119,7 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
case 'activity.yuanbaoShopHandler.getShopActivity':
|
||||
case 'activity.groupShopHandler.getGroupShopPage':
|
||||
case 'activity.groupShopHandler.leaveGroupShopPage':
|
||||
case 'activity.forgeHandler.getForgeActivity':
|
||||
{
|
||||
if(!checkNaturalNumbers(msg.activityId)) return false;
|
||||
break;
|
||||
@@ -425,6 +426,22 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
if(!checkNaturalNumbers(activityId, price, itemId, buyCnt)) return false;
|
||||
break;
|
||||
}
|
||||
case 'activity.forgeHandler.build':
|
||||
{
|
||||
let { activityId, id, material } = msg;
|
||||
if(!checkNaturalNumbers(activityId, id)) return false;
|
||||
if(!checkNaturalArray(material)) return false;
|
||||
for(let { id, count } of material) {
|
||||
if(!checkNaturalNumbers(id, count)) return false
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'activity.forgeHandler.buyCnt':
|
||||
{
|
||||
let { activityId, id, count } = msg;
|
||||
if(!checkNaturalNumbers(activityId, id, count)) return false;
|
||||
break;
|
||||
}
|
||||
case "battle.barrageHandler.getBarrageList":
|
||||
{
|
||||
if(!checkNaturalStrings(msg.rid)) return false;
|
||||
|
||||
Reference in New Issue
Block a user