From b3dc79828e674a464f88b741fe91d22f75652e4a Mon Sep 17 00:00:00 2001 From: wp20221109 Date: Mon, 9 Oct 2023 06:44:02 +0000 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E6=B8=A0=E9=81=93=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/login/login_servlet.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/server/login/login_servlet.lua b/server/login/login_servlet.lua index 20dd236e..82a3dfbf 100644 --- a/server/login/login_servlet.lua +++ b/server/login/login_servlet.lua @@ -60,9 +60,9 @@ function LoginServlet:on_account_login_req(session, cmd_id, body, session_id) if session.account then return client_mgr:callback_errcode(session, cmd_id, ACCOUTN_INLINE, session_id) end - local device_id = body.device_id local account_params = {} - if platform >= PLATFORM_PASSWORD then + local device_id = body.device_id + 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) @@ -74,7 +74,8 @@ function LoginServlet:on_account_login_req(session, cmd_id, body, session_id) return false end -- 三方信息 - open_id, device_id = sdk_open_id, sdk_device_id + open_id = sdk_open_id + device_id = sdk_device_id end --加载账号信息 local account = login_dao:load_account(open_id)