活动:记录完成任务获得的点数

This commit is contained in:
qiaoxin
2021-06-22 11:46:53 +08:00
parent ddfd8455c8
commit 5e940001eb
4 changed files with 18 additions and 7 deletions

View File

@@ -38,8 +38,8 @@ export class ItemHandler {
const funcs = session.get('funcs');
if (count > 0) {
// let consumeResult = await handleCost(roleId, sid, [{ id: id, count: count }]);
// if (!consumeResult) return resResult(STATUS.ACTIVITY_RES_NOT_ENOUGH);
let consumeResult = await handleCost(roleId, sid, [{ id: id, count: count }]);
if (!consumeResult) return resResult(STATUS.ACTIVITY_RES_NOT_ENOUGH);
let dicGoods = gameData.goods.get(id);
if (!dicGoods) {
@@ -47,7 +47,7 @@ export class ItemHandler {
}
let dicItid = ITID.get(dicGoods.itid);
if (!dicItid) return resResult(STATUS.DIC_DATA_NOT_FOUND);
if (dicItid.type != CONSUME_TYPE.CONSUME) {
if (dicItid.type != CONSUME_TYPE.GIFT_PACKAGE) {
return resResult(STATUS.NOT_CONSUME_GOODS);
}
let giftID = dicGoods.gift;