Ver código fonte

添加调试控制

gwang 4 anos atrás
pai
commit
0adc27f0f5

+ 1 - 1
Gameserver/Amfphp/Services/AppServer.php

@@ -46,7 +46,7 @@ class AppServer {
         }
         // todo: 检查clientVersion 判断是否应该强制升级 
 
-        if (now() - $req->ts > OFFSET_MSGTIME) {                                # 如果服务端客户端时间戳超过规定误差,则消息非法
+        if (!Index::$isDebugging && now() - $req->ts > OFFSET_MSGTIME) {        # 如果服务端客户端时间戳超过规定误差,则消息非法
             return ErrCode::err_outtime;
         }
         return ErrCode::ok;                                                     # 所有检查通过

+ 4 - 2
Gameserver/Amfphp/test.php

@@ -13,5 +13,7 @@ echoLine("phpver: " . PHP_VERSION . PHP_EOL);
 //var_dump(sprintf("%07d", $id));
 
 
-CLog::err("王李长城万里长城");
-CLog::flush();
+$arr = array(23);
+//$arr += explode(',', '35,85');
+$arr = array_merge($arr, explode(',', '35,85'));
+var_dump($arr);