礼包奖励
This commit is contained in:
@@ -166,7 +166,7 @@ export function stringToRewardParam(rewardStr: string): Array<RewardParam> {
|
|||||||
let decodeArr = decodeArrayListStr(rewardStr);
|
let decodeArr = decodeArrayListStr(rewardStr);
|
||||||
for (let [type, id, count] of decodeArr) {
|
for (let [type, id, count] of decodeArr) {
|
||||||
if (isNaN(parseInt(type)) || isNaN(parseInt(id)) || isNaN(parseInt(count))) {
|
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) });
|
result.push({ type: parseInt(type), id: parseInt(id), count: parseInt(count) });
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user