Commit 4cab94e47bc0375977dc1eaed50a7332889f0942

Authored by zhouhaihai
1 parent 15f06456

踢下线

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
src/services/agent_ctrl.lua
@@ -163,7 +163,7 @@ function _M:query_agent(fd, uid) @@ -163,7 +163,7 @@ function _M:query_agent(fd, uid)
163 -- self.f2u[f] 肯定存在;self.f2e[f]不存在,则说明在线,则需要踢下线 163 -- self.f2u[f] 肯定存在;self.f2e[f]不存在,则说明在线,则需要踢下线
164 if not self.f2e[f] then 164 if not self.f2e[f] then
165 local head = string.pack("H", actionCodes.Sys_kickdown) 165 local head = string.pack("H", actionCodes.Sys_kickdown)
166 - local bin = MsgPack.pack({body = "该账号已登上其他机器"}) 166 + local bin = MsgPack.pack({msg = "该账号已登上其他机器"})
167 if #bin > 0 then bin = xxtea.encrypt(bin, XXTEA_KEY) end 167 if #bin > 0 then bin = xxtea.encrypt(bin, XXTEA_KEY) end
168 socket.write(f, netpack.pack(head .. bin)) 168 socket.write(f, netpack.pack(head .. bin))
169 skynet.timeout(10, function () 169 skynet.timeout(10, function ()