Commit d0f92ceda735a5ce78f89170c506283c99048342

Authored by 测试
2 parents cc30a8b3 1d073c8b

Merge branch 'cn/develop' of 120.26.43.151:wasteland/server into cn/develop

Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
@@ -1713,7 +1713,7 @@ local function clickTrader(self, room, block, params) @@ -1713,7 +1713,7 @@ local function clickTrader(self, room, block, params)
1713 local goodsData = csvdb["event_trader_goodsCsv"][block.event.shop[buyId][1]] 1713 local goodsData = csvdb["event_trader_goodsCsv"][block.event.shop[buyId][1]]
1714 if not goodsData then return false, 5 end 1714 if not goodsData then return false, 5 end
1715 1715
1716 - local costCount = math.ceil(goodsData.price * (1 - (block.event.shop[buyId][2] or 100) / 100)) 1716 + local costCount = math.ceil(goodsData.price * (1 - (block.event.shop[buyId][2] or 0) / 100))
1717 if not self:cost({[goodsData.currency] = costCount}, {log = {desc = "clickTrader", int1 = block.event.id}}) then return false, 6 end --不够 1717 if not self:cost({[goodsData.currency] = costCount}, {log = {desc = "clickTrader", int1 = block.event.id}}) then return false, 6 end --不够
1718 self:backCost({[goodsData.currency] = costCount}) 1718 self:backCost({[goodsData.currency] = costCount})
1719 self:award({[goodsData.item] = goodsData.num}, {log = {desc = "clickTrader", int1 = block.event.id}}, {}) 1719 self:award({[goodsData.item] = goodsData.num}, {log = {desc = "clickTrader", int1 = block.event.id}}, {})
src/models/RolePlugin.lua
@@ -2377,7 +2377,7 @@ function RolePlugin.bind(Role) @@ -2377,7 +2377,7 @@ function RolePlugin.bind(Role)
2377 return 1 2377 return 1
2378 end 2378 end
2379 2379
2380 - if not self.storeData:checkRechargeRecord(rechargeData.limit, id) then 2380 + if not self.storeData:checkRechargeRecord(rechargeData.limit, id) and rechargeData.shop ~= 2 then
2381 return 2 2381 return 2
2382 end 2382 end
2383 2383