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;