活动:添加礼包消耗品类型判断
This commit is contained in:
@@ -45,6 +45,11 @@ export class ItemHandler {
|
||||
if (!dicGoods) {
|
||||
return resResult(STATUS.ACTIVITY_DATA_ERROR);
|
||||
}
|
||||
let dicItid = ITID.get(dicGoods.itid);
|
||||
if (!dicItid) return resResult(STATUS.DIC_DATA_NOT_FOUND);
|
||||
if (dicItid.type != CONSUME_TYPE.CONSUME) {
|
||||
return resResult(STATUS.NOT_CONSUME_GOODS);
|
||||
}
|
||||
let giftID = dicGoods.gift;
|
||||
if (!giftID) {
|
||||
return resResult(STATUS.NOT_GIFTPACKAGE);
|
||||
|
||||
Reference in New Issue
Block a user