糜家商队:修复加密后将参数删除的问题

This commit is contained in:
luying
2022-09-29 15:12:48 +08:00
parent 0c3305fdd4
commit c4b0f35f95
2 changed files with 2 additions and 2 deletions

View File

@@ -182,7 +182,7 @@ class Filter {
}
delete msg.k;
delete msg.v;
delete msg.data;
if(typeof msg.data == 'string') delete msg.data;
for(let key in targetObj) {
if(targetObj.hasOwnProperty(key)) {
msg[key] = targetObj[key];

View File

@@ -323,7 +323,7 @@ export function checkRouteParam(route: string, msg: any) {
}
case 'activity.selfServiceShopHandler.saveGood':
{
let { data } = msg;
let { data = [] } = msg;
for(let { activityId, roundIndex, index, cellIndex, rewardIndex } of data) {
if(!checkNaturalNumbers(activityId, roundIndex, index, cellIndex, rewardIndex)) return false;
}