diff --git a/server/login/login_servlet.lua b/server/login/login_servlet.lua index 043e1654..b9df7687 100644 --- a/server/login/login_servlet.lua +++ b/server/login/login_servlet.lua @@ -63,6 +63,7 @@ function LoginServlet:on_account_login_req(session, cmd_id, body, session_id) local device_id = body.device_id local account_params = {} if platform >= PLATFORM_PASSWORD then + body.ip = session.ip --登录验证 local result = event_mgr:notify_listener("on_platform_login", platform, open_id, access_token, body, account_params) local ok, code, sdk_open_id, sdk_device_id = tunpack(result)