Browse Source

fixed: 添加更新检查, 低版本的无法继续游戏.

王刚 3 years ago
parent
commit
4f83297df4
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Gameserver/Amfphp/service_call/InquireApi/CheckUpdate.php

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

@@ -77,10 +77,10 @@ class CheckUpdate {
             $ret->fullDownloadPage = self::GetFullDownloadPage($channel);
             $ret->fullDownloadPage = self::GetFullDownloadPage($channel);
 
 
             if (($newVer - $clientVer) >= 10 #                                  # 版本号差异大于10=>整包更
             if (($newVer - $clientVer) >= 10 #                                  # 版本号差异大于10=>整包更
-                    || $clientVer < 11                                           # 临时代码 2021.8.20 后面更新的时候需要注释掉
+                    || $clientVer < 15                                           # 临时代码 2021.8.20 后面更新的时候需要注释掉
             ) {
             ) {
                 $ret->err = ErrCode::clientversionlow_err;                      # 返回错误码,强制更新1
                 $ret->err = ErrCode::clientversionlow_err;                      # 返回错误码,强制更新1
-                $ret->msg = "发现新版本,只有更新才能进入游戏。是否立即更新?";
+                $ret->msg = "游戏已经发布新版本,只有更新才能进入游戏。是否立即更新?";
             } else if (self::HaltWithMsg #                                       # 显示消息并且退出游戏
             } else if (self::HaltWithMsg #                                       # 显示消息并且退出游戏
             ) {
             ) {
                 $ret->msg = "sorry, 服务暂停.";
                 $ret->msg = "sorry, 服务暂停.";