Commit 9a48494710a7afc5a1a563de937dd53bcb80be8b
Merge branch 'cn/develop' into cn/publish/release
* cn/develop: fix: 设置 onlineCount 全局变量 fix: 一番赏 修复消耗票兑换 不增加消耗票的bug
Showing
3 changed files
with
3 additions
and
3 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 |
src/services/agent_ctrl.lua
| @@ -141,10 +141,10 @@ function _M:check_agent_status() | @@ -141,10 +141,10 @@ function _M:check_agent_status() | ||
| 141 | end | 141 | end |
| 142 | end | 142 | end |
| 143 | 143 | ||
| 144 | + local count = table_nums(self.u2f) | ||
| 144 | datacenter.set("onlineCount", count) | 145 | datacenter.set("onlineCount", count) |
| 145 | if now >= next_log_time and now % 60 == 0 then | 146 | if now >= next_log_time and now % 60 == 0 then |
| 146 | next_log_time = now + 60 | 147 | next_log_time = now + 60 |
| 147 | - local count = table_nums(self.u2f) | ||
| 148 | --datacenter.set("onlineCount", count) | 148 | --datacenter.set("onlineCount", count) |
| 149 | logproxy:log({["@type"] = "online", count = count}, "log") | 149 | logproxy:log({["@type"] = "online", count = count}, "log") |
| 150 | end | 150 | end |