活动:弹出礼包购买限制
This commit is contained in:
@@ -85,6 +85,9 @@ export class PopUpShopHandler {
|
||||
if(!item) {
|
||||
return resResult(STATUS.ACTIVITY_MISSING);
|
||||
}
|
||||
if(item.productID) {
|
||||
return resResult(STATUS.ACTIVITY_POP_UP_MUST_BUY);
|
||||
}
|
||||
|
||||
let consume = stringToConsumeParam(item.consume);
|
||||
let consumeResult = await handleCost(roleId, sid, consume, ITEM_CHANGE_REASON.POP_UP_BUY_GIFT);
|
||||
|
||||
@@ -468,6 +468,7 @@ export const STATUS = {
|
||||
SHOP_CLOSED: { code: 50034, simStr: '停业' },
|
||||
ACTIVITY_RECHARGE_ITEM_NOT_ENOUGH: { code: 50035, simStr: '商品不足' },
|
||||
ACTIVITY_ITEM_CANNOT_RECEIVE: { code: 50036, simStr: '无可领取物品' },
|
||||
ACTIVITY_POP_UP_MUST_BUY: { code: 50013, simStr: '该礼包必须购买' },
|
||||
// GM后台相关状态 60000 - 69999
|
||||
GM_ERR_PASSWORD: { code: 60001, simStr: '账号或密码错误' },
|
||||
GM_MISS_API: { code: 60002, simStr: '未找到该接口' },
|
||||
|
||||
Reference in New Issue
Block a user