diff --git a/src/models/Store.lua b/src/models/Store.lua index 237f82a..e3ab415 100644 --- a/src/models/Store.lua +++ b/src/models/Store.lua @@ -501,12 +501,12 @@ 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) + skynet.error("not open, actid: " .. (actid or 0) .. "; id: " .. (id or 0)) return nil end local actCfg = csvdb["activity_ctrlCsv"][actid] if not actCfg then - skynet.error("actCfg is nil, actid: " .. actid .. "; id: " .. id) + skynet.error("actCfg is nil, actid: " .. (actid or 0) .. "; id: " .. (id or 0)) return nil end local actData = self.owner.activity:getActData("BattleCommand") or {} -- libgit2 0.21.2