活动:添加新任务类型

This commit is contained in:
qiaoxin
2021-05-29 17:15:26 +08:00
parent a1064512c3
commit b075dcfcd4
6 changed files with 18 additions and 7 deletions

View File

@@ -19,6 +19,10 @@ export class TreasureHuntHandler {
/************************寻宝骑兵活动****************************/
/**
* 每日物资:商店
寻宝备战:完成任务获得奖励,(奖品达到一定数量后开启 “寻宝大冒险”)
寻宝大冒险:完成战棋关卡获得奖励
天子宝库:物品兑换奖励
* @description 获取寻宝骑兵活动的数据
* @param {BackendSession} session
* @memberof TreasureHuntHandler
@@ -64,7 +68,7 @@ export class TreasureHuntHandler {
if (!item) {
return resResult(STATUS.ACTIVITY_MISSING, {});
}
if (item.price >= 0) {
if (item.price > 0) {
return resResult(STATUS.ACTIVITY_NEED_PAY, {});
}
if (item.buyCount >= item.countMax) {