关闭自动登录

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(() => {
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;