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 | 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
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 | ... | ... |