礼包奖励

This commit is contained in:
luying
2022-08-13 16:49:45 +08:00
parent a08748e817
commit cbadb4b087

View File

@@ -166,7 +166,7 @@ export function stringToRewardParam(rewardStr: string): Array<RewardParam> {
let decodeArr = decodeArrayListStr(rewardStr);
for (let [type, id, count] of decodeArr) {
if (isNaN(parseInt(type)) || isNaN(parseInt(id)) || isNaN(parseInt(count))) {
throw new Error('data table format wrong');
continue;
}
result.push({ type: parseInt(type), id: parseInt(id), count: parseInt(count) });
}