活动:每日免费午饭、晚饭活动

This commit is contained in:
qiaoxin
2021-06-10 17:09:31 +08:00
parent c0efcaa07d
commit 1b16ffc6ab
8 changed files with 293 additions and 5 deletions

View File

@@ -36,7 +36,7 @@ export class SelfServiceShopHandler {
let playerData = await getSelfServiceShopActivityData(serverId, roleId)
if (!playerData) return resResult(STATUS.ACTIVITY_MISSING);
let playerGoods = await ActivitySelfServiceGoodsModel.findData(playerData.activityId, roleId, playerData.roundIndex, true);
return resResult(STATUS.SUCCESS, { playerData, playerGoods });
return resResult(STATUS.SUCCESS, { playerData, playerGoods: playerGoods ? playerGoods : [] });
}
/**
@@ -95,7 +95,7 @@ export class SelfServiceShopHandler {
await ActivitySelfServiceGoodsModel.addGoods(obj.activityId, roleId, obj.roundIndex, obj.index, obj.cellIndex, obj.gift, obj.rewardIndex);
}
return resResult(STATUS.SUCCESS, {});
return resResult(STATUS.SUCCESS, { data });
}
/**