关闭自动登录
This commit is contained in:
parent
ee6096ac78
commit
f91cdd95b8
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user