Commit 9a48494710a7afc5a1a563de937dd53bcb80be8b

Authored by liuzujun
2 parents a18c7fd0 cf32785a

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

* cn/develop:
  fix: 设置 onlineCount 全局变量
  fix: 一番赏 修复消耗票兑换 不增加消耗票的bug
src/actions/CapsuleAction.lua
... ... @@ -187,7 +187,8 @@ function _M.convertCapsuleRpc(agent, data)
187 187 if not role:checkItemEnough(cost) then return 1 end
188 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 192 SendPacket(actionCodes.Capsule_convertCapsuleRpc, MsgPack.pack(role:packReward(reward, change)))
192 193 return true
193 194 end
... ...
src/models/RoleCross.lua
... ... @@ -385,7 +385,6 @@ function CMD.redPTag(roleId, tag, pms)
385 385 end
386 386  
387 387 function CMD.paySpecialReward(roleId, notify)
388   - dump(notify)
389 388 if notify and next(notify) then
390 389 local reward = {}
391 390 for key, val in pairs(notify) do
... ...
src/services/agent_ctrl.lua
... ... @@ -141,10 +141,10 @@ function _M:check_agent_status()
141 141 end
142 142 end
143 143  
  144 + local count = table_nums(self.u2f)
144 145 datacenter.set("onlineCount", count)
145 146 if now >= next_log_time and now % 60 == 0 then
146 147 next_log_time = now + 60
147   - local count = table_nums(self.u2f)
148 148 --datacenter.set("onlineCount", count)
149 149 logproxy:log({["@type"] = "online", count = count}, "log")
150 150 end
... ...