diff --git a/src/models/Store.lua b/src/models/Store.lua index d0a509c..237f82a 100644 --- a/src/models/Store.lua +++ b/src/models/Store.lua @@ -501,10 +501,14 @@ function Store:onBuyCard(type, duration, id, actid) return {} elseif type == CardType.ActBattleCommandCard then if not self.owner.activity:isOpenById(actid, "ActShopGoods") then + skynet.error("not open, actid: " .. actid .. "; id: " .. id) return nil end local actCfg = csvdb["activity_ctrlCsv"][actid] - if not actCfg then return end + if not actCfg then + skynet.error("actCfg is nil, actid: " .. actid .. "; id: " .. id) + return nil + end local actData = self.owner.activity:getActData("BattleCommand") or {} actData["unlock"] = 1 if actCfg.condition ~= 0 then -- libgit2 0.21.2