Commit ea4ea775e6e8827b6b845de66a9c055b8b5055f4

Authored by jiyue
2 parents 84193e7a c00d76f7

Merge branch 'cn/develop' into cn/publish/release

src/actions/CarAction.lua
@@ -90,7 +90,7 @@ function _M.equipUpRpc( agent, data ) @@ -90,7 +90,7 @@ function _M.equipUpRpc( agent, data )
90 local nextEquip = dataSet[nextLv] 90 local nextEquip = dataSet[nextLv]
91 if not nextEquip then return 23 end 91 if not nextEquip then return 23 end
92 92
93 - local limit = csvdb["itemCsv"][nextEquip.id].limit ~= 0 and csvdb["itemCsv"][nextEquip.id].limit or math.huge 93 + local limit = csvdb["itemCsv"][nextEquip.id].limit ~= 0 and csvdb["itemCsv"][nextEquip.id].limit or 10000
94 94
95 if math.illegalNum(count, 1, limit) then return 0 end 95 if math.illegalNum(count, 1, limit) then return 0 end
96 96
src/actions/PvpAction.lua
@@ -237,7 +237,7 @@ function _M.buyCountRpc(agent, data) @@ -237,7 +237,7 @@ function _M.buyCountRpc(agent, data)
237 local msg = MsgPack.unpack(data) 237 local msg = MsgPack.unpack(data)
238 local count = msg.count 238 local count = msg.count
239 239
240 - if math.illegalNum(count, 1, math.huge) then 240 + if math.illegalNum(count, 1, 10000) then
241 return 1 241 return 1
242 end 242 end
243 243
src/actions/StoreAction.lua
@@ -327,7 +327,7 @@ function _M.shopBuyRpc(agent , data) @@ -327,7 +327,7 @@ function _M.shopBuyRpc(agent , data)
327 end 327 end
328 328
329 local buyRecord = role.storeData:getProperty("buyR") 329 local buyRecord = role.storeData:getProperty("buyR")
330 - if math.illegalNum(count, 1, (dataSet.limit == 0 and math.huge or dataSet.limit - (buyRecord[id] or 0))) then 330 + if math.illegalNum(count, 1, (dataSet.limit == 0 and 10000 or dataSet.limit - (buyRecord[id] or 0))) then
331 skynet.error(string.format("shop buy over limit, user_id:%d, goods_id:%d", role:getProperty("id"), id)) 331 skynet.error(string.format("shop buy over limit, user_id:%d, goods_id:%d", role:getProperty("id"), id))
332 return 1 332 return 1
333 end 333 end
src/models/RolePlugin.lua
@@ -2929,7 +2929,6 @@ function RolePlugin.bind(Role) @@ -2929,7 +2929,6 @@ function RolePlugin.bind(Role)
2929 elseif type == 4 then 2929 elseif type == 4 then
2930 bonus = self:bonusMerged(towerBnous[SystemBnousType.DinerPrice], levelBnous[SystemBnousType.DinerPrice]) 2930 bonus = self:bonusMerged(towerBnous[SystemBnousType.DinerPrice], levelBnous[SystemBnousType.DinerPrice])
2931 end 2931 end
2932 - dump(bonus)  
2933 if not flag then 2932 if not flag then
2934 return self:getDeltaValue(bonus, value) + (bonus[0] or 0) 2933 return self:getDeltaValue(bonus, value) + (bonus[0] or 0)
2935 else 2934 else