Commit a5a4648334e739e88826ef1ccb5c98d8be563cca

Authored by zhangqijia
1 parent 652ef8f7

fix: 一番赏 修复消耗票兑换 不增加消耗票的bug

Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
src/actions/CapsuleAction.lua
@@ -187,7 +187,8 @@ function _M.convertCapsuleRpc(agent, data) @@ -187,7 +187,8 @@ function _M.convertCapsuleRpc(agent, data)
187 if not role:checkItemEnough(cost) then return 1 end 187 if not role:checkItemEnough(cost) then return 1 end
188 role:costItems(cost, {log = {desc = "CapsuleConvert", int1 = convert[1], int2 = cost[convert[1]]}}) 188 role:costItems(cost, {log = {desc = "CapsuleConvert", int1 = convert[1], int2 = cost[convert[1]]}})
189 189
190 - local reward, change = role:award({coin = count}, {log = {desc = "CapsuleConvert"}}) 190 +
  191 + local reward, change = role:award({[coin]= count}, {log = {desc = "CapsuleConvert"}})
191 SendPacket(actionCodes.Capsule_convertCapsuleRpc, MsgPack.pack(role:packReward(reward, change))) 192 SendPacket(actionCodes.Capsule_convertCapsuleRpc, MsgPack.pack(role:packReward(reward, change)))
192 return true 193 return true
193 end 194 end
src/models/RoleCross.lua
@@ -385,7 +385,6 @@ function CMD.redPTag(roleId, tag, pms) @@ -385,7 +385,6 @@ function CMD.redPTag(roleId, tag, pms)
385 end 385 end
386 386
387 function CMD.paySpecialReward(roleId, notify) 387 function CMD.paySpecialReward(roleId, notify)
388 - dump(notify)  
389 if notify and next(notify) then 388 if notify and next(notify) then
390 local reward = {} 389 local reward = {}
391 for key, val in pairs(notify) do 390 for key, val in pairs(notify) do