feat(活动): 节日活动-火神祭祀

This commit is contained in:
luying
2023-03-16 17:25:31 +08:00
parent f6a19fdc01
commit 04cecc2d5d
24 changed files with 566 additions and 14 deletions

View File

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