Commit 54bdb6e5df5f825cd92b439bf3c2aac2c94abfaa

Authored by 熊润斐
2 parents 895903a9 1c1ea691

Merge branch 'tr/bugfix' into tr/publish/preview

src/actions/ActivityAction.lua
@@ -568,7 +568,10 @@ function _M.endBattleRpc(agent, data) @@ -568,7 +568,10 @@ function _M.endBattleRpc(agent, data)
568 local isWin = msg.isWin 568 local isWin = msg.isWin
569 local heros = msg.heros 569 local heros = msg.heros
570 local support = msg.support 570 local support = msg.support
571 - if not role.activity:isOpenById(actid, "ChallengeLevel") then return 1 end 571 + if not role.activity:isOpenById(actid, "ChallengeLevel") then
  572 + SendPacket(actionCodes.Activity_endBattleRpc, MsgPack.pack({}))
  573 + return true
  574 + end
572 575
573 if not role.__actBattleCache then return 2 end 576 if not role.__actBattleCache then return 2 end
574 577
src/actions/StoreAction.lua
@@ -233,6 +233,13 @@ function _M.getFreeChestRpc(agent, data) @@ -233,6 +233,13 @@ function _M.getFreeChestRpc(agent, data)
233 local config = csvdb["shop_rechargeCsv"][id] 233 local config = csvdb["shop_rechargeCsv"][id]
234 if not config then return end 234 if not config then return end
235 235
  236 + --判断是否是活动商品
  237 + if config.activity_id ~= 0 then
  238 + local actCfg = csvdb["activity_ctrlCsv"][config.activity_id]
  239 + if not actCfg then return 2 end
  240 + if not role.activity:isOpenById(config.activity_id, "ActShopGoods") then return 3 end
  241 + end
  242 +
236 local rechargeRecord = role.storeData:getProperty("payR") 243 local rechargeRecord = role.storeData:getProperty("payR")
237 local getCount = (rechargeRecord[id] or 0) 244 local getCount = (rechargeRecord[id] or 0)
238 if getCount >= config.limit then 245 if getCount >= config.limit then
1 -Subproject commit 516f9d34ccb5dfc9a5fd40c251f3229e5a4651e6 1 +Subproject commit c820a5807bf24a342c40fcbb5def8a31899cc664