Commit 46b435afb268a41b103b021bce129d9db5d206ac
1 parent
c0308568
fix: 当活动未开启,找不到活动配置时候,记录日志。
充值超级战令,shop_recharge, id = 503; activity_ctrl, id=46 showType=25。充值成功,战令未显示。
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/models/Store.lua
@@ -501,10 +501,14 @@ function Store:onBuyCard(type, duration, id, actid) | @@ -501,10 +501,14 @@ function Store:onBuyCard(type, duration, id, actid) | ||
501 | return {} | 501 | return {} |
502 | elseif type == CardType.ActBattleCommandCard then | 502 | elseif type == CardType.ActBattleCommandCard then |
503 | if not self.owner.activity:isOpenById(actid, "ActShopGoods") then | 503 | if not self.owner.activity:isOpenById(actid, "ActShopGoods") then |
504 | + skynet.error("not open, actid: " .. actid .. "; id: " .. id) | ||
504 | return nil | 505 | return nil |
505 | end | 506 | end |
506 | local actCfg = csvdb["activity_ctrlCsv"][actid] | 507 | local actCfg = csvdb["activity_ctrlCsv"][actid] |
507 | - if not actCfg then return end | 508 | + if not actCfg then |
509 | + skynet.error("actCfg is nil, actid: " .. actid .. "; id: " .. id) | ||
510 | + return nil | ||
511 | + end | ||
508 | local actData = self.owner.activity:getActData("BattleCommand") or {} | 512 | local actData = self.owner.activity:getActData("BattleCommand") or {} |
509 | actData["unlock"] = 1 | 513 | actData["unlock"] = 1 |
510 | if actCfg.condition ~= 0 then | 514 | if actCfg.condition ~= 0 then |