弹出礼包:pvp改为挑战次数
This commit is contained in:
@@ -108,9 +108,10 @@ export async function checkPopUpConditions(serverId: number, roleId: string, con
|
||||
map.get(item.param).push(item);
|
||||
}
|
||||
for(let [_, items] of map) {
|
||||
let effectTimes = await pkg.getEffectTime();
|
||||
let popUpShopRec = await ActivityPopUpShopModel.createRecord({
|
||||
serverId, activityId, roleId, id: pkg.id,
|
||||
...pkg.getEffectTime(),
|
||||
...effectTimes,
|
||||
items: items.map(item => new PopUpShopItem(item))
|
||||
});
|
||||
let result = pkg.pushPackage(popUpShopRec);
|
||||
|
||||
Reference in New Issue
Block a user