Przeglądaj źródła

准备v22更新

王刚 3 lat temu
rodzic
commit
a160322d99

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

@@ -78,7 +78,7 @@ class CheckUpdate {
                 $ret->msg = "sorry, x点到y服务暂停.";
                 $ret->err = ErrCode::clientPrintMsg_Halt;
             } else
-            if ($clientVer < 21                                                 # 临时代码 2021.8.20 后面更新的时候需要注释掉
+            if ($clientVer < 22                                                 # 临时代码 2021.8.20 后面更新的时候需要注释掉
             // || ($newVer - $clientVer) >= 10 #                                 # 版本号差异大于10=>整包更
             ) {
                 $ret->err = ErrCode::clientversionlow_err;                      # 返回错误码,强制更新1

+ 2 - 9
Gameserver/Amfphp/test.php

@@ -5,6 +5,7 @@ namespace loyalsoft;
 include __DIR__ . '/main.php';
 //var_dump(__DIR__);
 
+
 echoLine("phpver: " . PHP_VERSION . PHP_EOL);
 echoLine("tsDay:" . totalDays());
 //SelfChecker::CheckAll();
@@ -12,13 +13,5 @@ echoLine("tsDay:" . totalDays());
 //set_time_limit(15);                                                           # 设置执行超时时间
 //
 //
-SelfChecker::checkModules();
-
-$m = new \MongoDB\Driver\Client("mongodb://localhost:27017");
-$db = $m->selectDb("wanggangzero"); //选择数据库
-$db->php->insert(array('name' => '李元霸', 'age' => 12));
-
-$db->php->insert(array('name' => '李元霸', 'age' => 18));
 
-$data = $db->php->find();
-var_dump($data);
+CLog::err("Hi");