Просмотр исходного кода

【正式服1.0.2】修改服务器指向不正确问题

mojunshou 6 месяцев назад
Родитель
Сommit
2b72dcc248

+ 1 - 1
.gitignore

@@ -14,7 +14,7 @@ build/
 extensions/
 settings/
 preview-template/
-native/
+# native/
 #//////////////////////////
 # NPM
 #//////////////////////////

+ 1 - 2
assets/script/game/common/manager/ADHandler.ts

@@ -2,7 +2,7 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-04-11 10:14:44
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-05-06 15:20:55
+ * @LastEditTime: 2025-05-15 14:56:57
  * @Description: 
  */
 // ADHandler.ts
@@ -35,7 +35,6 @@ export class ADHandler {
     };
 
     private buildAdParam(id: string): { method: string, param: any } {
-        console.log("播放的广告ID>>>>>>>>>>>>>", id)
         const param: any = {
             funcId: id,
             callback: {

+ 1 - 1
assets/script/game/common/manager/LoginHandler.ts

@@ -2,7 +2,7 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-04-11 10:15:45
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-05-08 16:24:14
+ * @LastEditTime: 2025-05-15 15:11:34
  * @Description: 登录管理
  */
 // LoginHandler.ts

+ 6 - 6
assets/script/game/common/manager/ServerHandler.ts

@@ -2,7 +2,7 @@
  * @Author: mojunshou 1637302775@qq.com
  * @Date: 2025-04-11 10:16:41
  * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-05-08 16:24:45
+ * @LastEditTime: 2025-05-15 15:11:26
  * @Description: 
  */
 // ServerHandler.ts
@@ -30,17 +30,17 @@ export class ServerHandler {
     }
 
     private initServerUrl() {
-        let isRelease = smc.game.GameModel.isRelease;
+        let isDebug = smc.game.GameModel.isRelease;
         // 设置服务器地址
-        this.serverUrl = isRelease ?
-            ProtocolEvent.ReleaseServer : // 正式服
-            ProtocolEvent.TestServer;    // 测试服
+        this.serverUrl = isDebug ?
+            ProtocolEvent.TestServer :
+            ProtocolEvent.ReleaseServer;
 
         //如果是本地测试,则使用本地测试地址
         if (oops.config.game.isLocalTest) {
             this.serverUrl = ProtocolEvent.LocalTest;
         }
-        console.log("[ServerHandler] 当前服务器地址:", this.serverUrl);
+        // console.log("[ServerHandler] 当前服务器地址:", this.serverUrl);
     }
 
     private buildCallback(success: string, fail?: string) {

+ 1 - 1
assets/script/game/initialize/view/LoadingViewComp.ts

@@ -55,7 +55,7 @@ export class LoadingViewComp extends CCVMParentComp {
 
     async enter() {
         if (DeviceUtil.isNative && DeviceUtil.isAndroid) {
-            LoginHandler.inst.getVersionStatus()
+            await LoginHandler.inst.getVersionStatus()
             const state = await LoginHandler.inst.getPrivacyStatus();
             if (state.data.result) {
                 //同意之后都加载一次启屏广告