|
@@ -69,15 +69,17 @@ function MODULE.monitor(character)
|
|
|
|
|
|
character.monitor("role_level", function(_, pre, cur)
|
|
character.monitor("role_level", function(_, pre, cur)
|
|
shengtian = shengtian or require "service.loginserver.shengtian"
|
|
shengtian = shengtian or require "service.loginserver.shengtian"
|
|
- local content = {
|
|
|
|
- account = character.account,
|
|
|
|
- uid = character.uid,
|
|
|
|
- name = character.nickname,
|
|
|
|
- server = character.sid,
|
|
|
|
- level = character.level,
|
|
|
|
- power = character.power,
|
|
|
|
- }
|
|
|
|
- shengtian.upload(2, content)
|
|
|
|
|
|
+ if character.login_args.channel== "shengtian" then
|
|
|
|
+ local content = {
|
|
|
|
+ account = character.account,
|
|
|
|
+ uid = character.uid,
|
|
|
|
+ name = character.nickname,
|
|
|
|
+ server = character.sid,
|
|
|
|
+ level = character.level,
|
|
|
|
+ power = character.power,
|
|
|
|
+ }
|
|
|
|
+ shengtian.upload(2, content)
|
|
|
|
+ end
|
|
end)
|
|
end)
|
|
end
|
|
end
|
|
|
|
|