活动:修改string变id&count的转换方法

This commit is contained in:
luying
2022-04-27 16:51:34 +08:00
parent c259883dca
commit a9b3dba5b3
6 changed files with 62 additions and 14 deletions

View File

@@ -3,8 +3,7 @@ import { POP_UP_SHOP_CONDITION_TYPE, POP_UP_SHOP_REFRESH_TIME_TYPE, REFRESH_TIME
import { ActivityModelType } from "../../db/Activity";
import { ActivityPopUpShopModelType, PopUpShopItem as ActivityPopUpShopItem } from "../../db/ActivityPopUpShop";
import { RewardInter } from "../../pubUtils/interface";
import { parseNumberList } from "../../pubUtils/util";
import { stringToRewardInter } from "../../pubUtils/util";
import { parseNumberList, stringWithTypeToRewardInter } from "../../pubUtils/util";
import { ActivityBase } from './activityField';
// 数据库格式
@@ -332,7 +331,7 @@ export class PopShopItem {
this.productID = data.productID;
this.consume = data.consume;
this.reward = data.reward;
this.rewardInter = stringToRewardInter(data.reward);
this.rewardInter = stringWithTypeToRewardInter(data.reward);
this.rebate = data.rebate;
this.buyCnt = data.buyCnt;
this.parent = parent;