From 3eee5957f6df4918b7e84835880462a38dabe225 Mon Sep 17 00:00:00 2001 From: chenxi Date: Fri, 2 Jun 2023 15:48:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=A6=E5=8F=B7=E7=9B=B8=E5=85=B3=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/module/account/account_manager.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lua/app/module/account/account_manager.lua b/lua/app/module/account/account_manager.lua index 36e44dc5..4eba2a09 100644 --- a/lua/app/module/account/account_manager.lua +++ b/lua/app/module/account/account_manager.lua @@ -57,7 +57,7 @@ function AccountManager:bindAccount() end function AccountManager:onBindAccount(result) - if result.err_code == GConst.ERROR_STR.SUCCESS then + if result.status == 0 then local accountInfo = LocalData:getAccountInfo() local loginType = SDKManager.BF_LOGIN_TYPE.GOOGLE if Platform:isIosPlatform() then @@ -74,6 +74,12 @@ function AccountManager:onBindAccount(result) GFunc.showToast(I18N:getGlobalText(I18N.GlobalConst.BIND_ACCOUNT_SUCCESS)) EventManager:dispatchEvent(EventManager.CUSTOM_EVENT.BIND_ACCOUNT_SUCCESS) else -- 一些失败的提示 + local params = { + content = I18N:getGlobalText(I18N.GlobalConst.ALREADY_BINDED_DESC), + boxType = GConst.MESSAGE_BOX_TYPE.MB_OK, + okText = I18N:getGlobalText(I18N.GlobalConst.BTN_TEXT_OK), + } + GFunc.showMessageBox(params) local loginType = SDKManager.BF_LOGIN_TYPE.GOOGLE if Platform:isIosPlatform() then loginType = SDKManager.BF_LOGIN_TYPE.APPLE @@ -103,7 +109,7 @@ function AccountManager:changeAccount() end function AccountManager:onChangeAccount(result) - if result.err_code == GConst.ERROR_STR.SUCCESS then -- 目标账号存在,切换到目标账号 + if result.status == 0 then local accountInfo = LocalData:getAccountInfo() local loginType = SDKManager.BF_LOGIN_TYPE.GOOGLE if Platform:isIosPlatform() then