活动:添加礼包消耗品类型判断

This commit is contained in:
qiaoxin
2021-06-21 19:41:55 +08:00
parent 25e1331b10
commit cdca53e5c7
5 changed files with 25 additions and 5 deletions

View File

@@ -31,7 +31,6 @@ export const CONSUME_TYPE = {
HEAD: 11, // 头像
FRAME: 12, // 相框
SPINE: 13, // 形象
GIFT_PACKAGE: 14, // 礼包
};
export enum ROLE_TERAPH {

View File

@@ -218,6 +218,7 @@ export const STATUS = {
ROLE_MATERIAL_NOT_ENOUGH: { code: 30001, simStr: '材料数量不足' },
REWARD_CONDITION_NOT_REACH: { code: 30002, simStr: '未满足领取条件' },
REWARD_HAS_RECEIVED: { code: 30003, simStr: '奖励已领取' },
NOT_CONSUME_GOODS: { code: 30004, simStr: '非消耗品' },
// 武将养成通用 30100 - 30199

View File

@@ -1198,6 +1198,12 @@ export function isComplete(roleId: string, taskType: TASK_TYPE, taskParam: strin
break;
}
}
case TASK_TYPE.BATTLE_TOWER:
{
addCount = count;
break;
}
default:
addCount = 0;
break;