✨ feat(百家争鸣):祈灵 更新至 eb9f941ae
This commit is contained in:
@@ -761,7 +761,7 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
for (let { actorId, dataId, order, ai } of heroes) {
|
||||
if (!checkNaturalNumbers(actorId, dataId, order, ai)) return false;
|
||||
}
|
||||
if(!checkCombo(combo)) return false
|
||||
if (!checkCombo(combo)) return false
|
||||
break;
|
||||
}
|
||||
case "battle.pvpHandler.receiveBox":
|
||||
@@ -822,7 +822,7 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
for (let { actorId, dataId, order } of msg.heroes) {
|
||||
if (!checkNaturalNumbers(actorId, dataId, order)) return false;
|
||||
}
|
||||
if(!checkCombo(msg.combo)) return false
|
||||
if (!checkCombo(msg.combo)) return false
|
||||
break;
|
||||
}
|
||||
case "battle.ladderHandler.buyCnt":
|
||||
@@ -2108,6 +2108,16 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
if (!checkNaturalNumbers(msg.activityId, msg.count)) return false;
|
||||
break;
|
||||
}
|
||||
case 'activity.authorGachaHandler.getData':
|
||||
{
|
||||
if (!checkNaturalNumbers(msg.activityId)) return false;
|
||||
break;
|
||||
}
|
||||
case 'activity.authorGachaHandler.receiveBox':
|
||||
{
|
||||
if (!checkNaturalNumbers(msg.activityId, msg.count)) return false;
|
||||
break;
|
||||
}
|
||||
case 'activity.activityHandler.debugActivityMemory':
|
||||
case 'activity.popUpShopHandler.debugPushPopUpShop':
|
||||
case 'activity.popUpShopHandler.debugPushPopUpInterval':
|
||||
@@ -2334,14 +2344,14 @@ function checkSeqId(...seqIds: (number | string)[]) {
|
||||
return true;
|
||||
}
|
||||
|
||||
function checkCombo(combo: {groupId: number, levelList: number[]}[]) {
|
||||
if(combo) {
|
||||
if(!isArray(combo)) return false;
|
||||
for(let {groupId, levelList} of combo) {
|
||||
if(!isNumber(groupId)) return false;
|
||||
if(!isArray(levelList)) return false;
|
||||
for(let lv of levelList) {
|
||||
if(!isNumber(lv)) return false;
|
||||
function checkCombo(combo: { groupId: number, levelList: number[] }[]) {
|
||||
if (combo) {
|
||||
if (!isArray(combo)) return false;
|
||||
for (let { groupId, levelList } of combo) {
|
||||
if (!isNumber(groupId)) return false;
|
||||
if (!isArray(levelList)) return false;
|
||||
for (let lv of levelList) {
|
||||
if (!isNumber(lv)) return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user