From f91cdd95b8eef2421f7b325941544458fcbb760c Mon Sep 17 00:00:00 2001 From: "guoqing.zhu" <1521292690@qq.com> Date: Mon, 6 Jun 2022 12:04:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E9=97=AD=E8=87=AA=E5=8A=A8=E7=99=BB?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/scripts/UILogin.js | 48 ++++++++++++++++++++------------------- 1 file changed, 25 insertions(+), 23 deletions(-) diff --git a/assets/scripts/UILogin.js b/assets/scripts/UILogin.js index d6cf4c4c..7920776f 100644 --- a/assets/scripts/UILogin.js +++ b/assets/scripts/UILogin.js @@ -295,29 +295,31 @@ cc.Class({ getSwitch(() => { if (!Config.isTest) { - if (localStorage.getItem('walletaccount')) { - this.btn_tourist.active = false; - this.btn_wallet.active = false; - window.hasWallet = true; - window.account = localStorage.getItem('walletaccount'); - window.canAutoLogin = true; - SDKManage.init('6516'); - jcgamelog.addOperation( - OperationType.LOGIN, - 'auto login', - window.account - ); - SDKManage.Login(() => { - jcgamelog.addOperation( - OperationType.LOGIN, - 'auto login success', - window.account - ); - }); - } else { - this.btn_tourist.active = true; - this.btn_wallet.active = true; - } + this.btn_tourist.active = true; + this.btn_wallet.active = true; + // if (localStorage.getItem('walletaccount')) { + // this.btn_tourist.active = false; + // this.btn_wallet.active = false; + // window.hasWallet = true; + // window.account = localStorage.getItem('walletaccount'); + // window.canAutoLogin = true; + // SDKManage.init('6516'); + // jcgamelog.addOperation( + // OperationType.LOGIN, + // 'auto login', + // window.account + // ); + // SDKManage.Login(() => { + // jcgamelog.addOperation( + // OperationType.LOGIN, + // 'auto login success', + // window.account + // ); + // }); + // } else { + // this.btn_tourist.active = true; + // this.btn_wallet.active = true; + // } } else { this.btn_tourist.active = true; this.btn_wallet.active = false;