关闭自动登录

This commit is contained in:
guoqing.zhu 2022-06-06 12:04:42 +08:00
parent ee6096ac78
commit f91cdd95b8

View File

@ -295,29 +295,31 @@ cc.Class({
getSwitch(() => { getSwitch(() => {
if (!Config.isTest) { if (!Config.isTest) {
if (localStorage.getItem('walletaccount')) { this.btn_tourist.active = true;
this.btn_tourist.active = false; this.btn_wallet.active = true;
this.btn_wallet.active = false; // if (localStorage.getItem('walletaccount')) {
window.hasWallet = true; // this.btn_tourist.active = false;
window.account = localStorage.getItem('walletaccount'); // this.btn_wallet.active = false;
window.canAutoLogin = true; // window.hasWallet = true;
SDKManage.init('6516'); // window.account = localStorage.getItem('walletaccount');
jcgamelog.addOperation( // window.canAutoLogin = true;
OperationType.LOGIN, // SDKManage.init('6516');
'auto login', // jcgamelog.addOperation(
window.account // OperationType.LOGIN,
); // 'auto login',
SDKManage.Login(() => { // window.account
jcgamelog.addOperation( // );
OperationType.LOGIN, // SDKManage.Login(() => {
'auto login success', // jcgamelog.addOperation(
window.account // 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 = true;
// }
} else { } else {
this.btn_tourist.active = true; this.btn_tourist.active = true;
this.btn_wallet.active = false; this.btn_wallet.active = false;