Browse Source

fixed: 热更检测规则增加临时条件.

gwang 3 years ago
parent
commit
515842ce1f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      Gameserver/Amfphp/service_call/InquireApi/CheckUpdate.php

+ 3 - 1
Gameserver/Amfphp/service_call/InquireApi/CheckUpdate.php

@@ -77,7 +77,9 @@ class CheckUpdate {
             $ret->cdn = self::CDN_Root();
             $ret->fullDownloadPage = self::GetFullDownloadPage($channel);
 
-            if (($newVer - $clientVer) >= 10) {                                  # 版本号差异大于10=>整包更
+            if (($newVer - $clientVer) >= 10 #                                  # 版本号差异大于10=>整包更
+                    || $clientVer < 5                                           # 临时代码 2021.8.20 后面更新的时候需要注释掉
+            ) {
                 $ret->err = ErrCode::clientversionlow_err;                      # 返回错误码,强制更新1
                 $ret->msg = "发现新版本,只有更新才能进入游戏。是否立即更新?";
             } else if (($newVer - $clientVer) > 0) { #                          # 修订版本号不一致, 提示更新