糜家商队:修复加密后将参数删除的问题
This commit is contained in:
@@ -182,7 +182,7 @@ class Filter {
|
|||||||
}
|
}
|
||||||
delete msg.k;
|
delete msg.k;
|
||||||
delete msg.v;
|
delete msg.v;
|
||||||
delete msg.data;
|
if(typeof msg.data == 'string') delete msg.data;
|
||||||
for(let key in targetObj) {
|
for(let key in targetObj) {
|
||||||
if(targetObj.hasOwnProperty(key)) {
|
if(targetObj.hasOwnProperty(key)) {
|
||||||
msg[key] = targetObj[key];
|
msg[key] = targetObj[key];
|
||||||
|
|||||||
@@ -323,7 +323,7 @@ export function checkRouteParam(route: string, msg: any) {
|
|||||||
}
|
}
|
||||||
case 'activity.selfServiceShopHandler.saveGood':
|
case 'activity.selfServiceShopHandler.saveGood':
|
||||||
{
|
{
|
||||||
let { data } = msg;
|
let { data = [] } = msg;
|
||||||
for(let { activityId, roundIndex, index, cellIndex, rewardIndex } of data) {
|
for(let { activityId, roundIndex, index, cellIndex, rewardIndex } of data) {
|
||||||
if(!checkNaturalNumbers(activityId, roundIndex, index, cellIndex, rewardIndex)) return false;
|
if(!checkNaturalNumbers(activityId, roundIndex, index, cellIndex, rewardIndex)) return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user