弹出礼包增加是否展示的字段

This commit is contained in:
liangtongchuan
2022-07-28 15:21:45 +08:00
parent 4b051aec48
commit 784e374e90
2 changed files with 21 additions and 0 deletions

View File

@@ -108,6 +108,17 @@ export class PopUpShopHandler {
});
}
// 客户端展示弹出礼包的通知
async showGift(msg: { activityId: number, code: string, id: number }, session: BackendSession) {
const { activityId, code, id } = msg;
const roleId = session.get('roleId');
const serverId = session.get('serverId');
let rec = await ActivityPopUpShopModel.show(serverId, activityId, roleId, code, id);
if (!rec) return resResult(STATUS.ACTIVITY_MISSING);
return resResult(STATUS.SUCCESS);
}
async debugPushPopUpShop(msg: { conditionType: number, magicWord: string, param: number, needDelete: boolean }, session: BackendSession) {
const roleId = session.get('roleId');
let serverId = session.get('serverId');