From 2379cc78112ecbe65a9fcb817d6441875f785803 Mon Sep 17 00:00:00 2001
From: Spring774 <337905794@qq.com>
Date: Wed, 12 Nov 2025 22:27:35 +0800
Subject: [PATCH] 添加注销账号,已提审

---
 assets/Script/Logo.ts |   22 ++++++++++++++--------
 1 files changed, 14 insertions(+), 8 deletions(-)

diff --git a/assets/Script/Logo.ts b/assets/Script/Logo.ts
index 9a3e716..7536b4f 100644
--- a/assets/Script/Logo.ts
+++ b/assets/Script/Logo.ts
@@ -123,14 +123,20 @@
 
     startGame() {
         if (Sdk.isHuawei) {
-            Sdk.ins.startGame((result) => {
-                if (result) {//自动登录成功
-                    cc.director.loadScene(this.nextSceneName);
-                } else {//显示开始游戏按钮
-                    this.buttonStartGame.node.active = true;
-                    this.ppNode.active = false;
-                }
-            });
+            if (Sdk.ins.isLogin) {
+                //显示开始游戏按钮
+                this.buttonStartGame.node.active = true;
+                this.ppNode.active = false;
+                Sdk.ins.isLogin = false;
+            } else
+                Sdk.ins.startGame((result) => {
+                    if (result) {//自动登录成功
+                        cc.director.loadScene(this.nextSceneName);
+                    } else {//显示开始游戏按钮
+                        this.buttonStartGame.node.active = true;
+                        this.ppNode.active = false;
+                    }
+                });
         } else {
             cc.director.loadScene(this.nextSceneName);
         }

--
Gitblit v1.9.1