Эх сурвалжийг харах

调整热更检查逻辑.

王刚 3 жил өмнө
parent
commit
7232f87cd0

+ 2 - 6
Gameserver/Amfphp/service_call/InquireApi/CheckUpdate.php

@@ -45,8 +45,7 @@ class CheckUpdate {
 
     static function CDN_Root() {
         if (GAME_ONLINE) {
-            return "https://1105051445-1251008001.cos.ap-shanghai.myqcloud.com/cdn/";
-            return "http://115.159.121.129/ylsj2019/CDN/";
+            return "https://1105051445-1251008001.cos.ap-shanghai.myqcloud.com/cdn/"; # 外网CDN
         } else {
             return "http://192.168.10.86/ylsj2019/CDN/";
         }
@@ -83,7 +82,6 @@ class CheckUpdate {
                 $ret->err = ErrCode::clientversionlow_err;                      # 返回错误码,强制更新1
                 $ret->msg = "发现新版本,只有更新才能进入游戏。是否立即更新?";
             } else if (self::HaltWithMsg #                                       # 显示消息并且退出游戏
-                    || $clientVer < 5                                             #  临时代码 2021.8.20 后面更新的时候需要注释掉
             ) {
                 $ret->msg = "sorry, 服务暂停.";
                 $ret->err = ErrCode::clientPrintMsg_Halt;
@@ -165,9 +163,7 @@ class CheckUpdate {
         switch ($channel) {
             case "TapTap";
                 // $url = "https://www.taptap.com/app/68388";                      # 正式服
-                $url = "https://www.taptap.com/developer/21413";                # 测试服
-                $url = "https://d-ve.tapimg.com/f/202108/20/a/86774789f0765df4b911650c163e9e64?t=1629456610&sign=aeda47ad1860f413c5e7bcfcef2f590d"; # 测试直接下载文件
-                $url = "https://www.taptap.com/app/221344";                     # test 1.0.7
+                $url = "https://www.taptap.com/app/21413";                      # 测试服
                 break;
             default :
                 $url = "https://www.taptap.com/developer/21413";                # taptap测试服