1234567891011121314151617 |
- --推送消息
- local M = {}
- local agent_manager = nil
- local mysqldbx = require "mysqldbx"
- local tools = require "tools"
- local skynet = require "skynet"
- function M.push(cmd,msg_body)
- if not agent_manager then
- agent_manager = skynet.queryservice("agent_manager")
- end
- skynet.fork(function()
- skynet.sleep(200)
- skynet.call(agent_manager,"lua",cmd,msg_body)
- end)
- end
- return M
|