Commit 7e6aa5d9a67eaaf115f6268afd496f114fd72788

Authored by zhouhaihai
1 parent 576c791c

redis 信息

Showing 2 changed files with 3 additions and 3 deletions   Show diff stats
robot/robot_config.lua
@@ -10,7 +10,7 @@ end @@ -10,7 +10,7 @@ end
10 10
11 11
12 return { 12 return {
13 - http = "http://106.13.60.20:9090", -- 登录服 13 + http = "http://192.168.0.199:9090", -- 登录服
14 host = "127.0.0.1", --服务器地址 14 host = "127.0.0.1", --服务器地址
15 port = 12001, -- 服务器端口 15 port = 12001, -- 服务器端口
16 16
@@ -18,7 +18,7 @@ return { @@ -18,7 +18,7 @@ return {
18 online = 100, -- 稳定状态在线人数 18 online = 100, -- 稳定状态在线人数
19 inpre = 10, -- 稳定前每秒进入人数 -- 必须小于online数 19 inpre = 10, -- 稳定前每秒进入人数 -- 必须小于online数
20 max = 200, -- 最大玩家数 必须大于 online 数 20 max = 200, -- 最大玩家数 必须大于 online 数
21 - online_time = {10 * 60, 20 * 60}, -- 在线时间控制 秒 21 + online_time = {10, 60}, -- 在线时间控制 秒
22 22
23 uname_prefix = "robot", --机器名称前缀 23 uname_prefix = "robot", --机器名称前缀
24 24
src/services/redisd.lua
@@ -25,7 +25,7 @@ skynet.start(function() @@ -25,7 +25,7 @@ skynet.start(function()
25 end 25 end
26 end) 26 end)
27 skynet.info_func(function() 27 skynet.info_func(function()
28 - skynet.ret(skynet.pack(skynet.call(skynet.self(), "debug", "STAT"))) 28 + return skynet.call(skynet.self(), "debug", "STAT")
29 end) 29 end)
30 skynet.register ".redis" 30 skynet.register ".redis"
31 end) 31 end)
32 \ No newline at end of file 32 \ No newline at end of file