Skip to content

Commit

Permalink
ip参数
Browse files Browse the repository at this point in the history
  • Loading branch information
wangpeng committed Sep 25, 2023
1 parent 8779c1c commit 5d80c86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/login/login_servlet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5d80c86

Please sign in to comment.