Commit 16790b38438d1ff388bd6b113180bbca2b9e3f1f
1 parent
c0f423a0
fix: 战令错误日志 加上 roleId
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/models/Store.lua
@@ -501,12 +501,12 @@ function Store:onBuyCard(type, duration, id, actid) | @@ -501,12 +501,12 @@ 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 or 0) .. "; id: " .. (id or 0)) | 504 | + skynet.error("not open, actid: " .. (actid or 0) .. "; id: " .. (id or 0) .. "; roleId: " .. self.owner:getProperty("id")) |
505 | return nil | 505 | return nil |
506 | end | 506 | end |
507 | local actCfg = csvdb["activity_ctrlCsv"][actid] | 507 | local actCfg = csvdb["activity_ctrlCsv"][actid] |
508 | if not actCfg then | 508 | if not actCfg then |
509 | - skynet.error("actCfg is nil, actid: " .. (actid or 0) .. "; id: " .. (id or 0)) | 509 | + skynet.error("actCfg is nil, actid: " .. (actid or 0) .. "; id: " .. (id or 0) .. "; roleId: " .. self.owner:getProperty("id")) |
510 | return nil | 510 | return nil |
511 | end | 511 | end |
512 | local actData = self.owner.activity:getActData("BattleCommand") or {} | 512 | local actData = self.owner.activity:getActData("BattleCommand") or {} |