王刚 3 anos atrás
pai
commit
7c588ec564

+ 19 - 19
Gameserver/Amfphp/test.php

@@ -4,7 +4,7 @@ namespace loyalsoft;
 
 include __DIR__ . '/main.php';
 echoLine("phpver: " . PHP_VERSION . PHP_EOL);
-
+echoLine("tsDay:" . tsDay());
 //SelfChecker::CheckAll();
 //
 //set_time_limit(15);                                                           # 设置执行超时时间
@@ -13,22 +13,22 @@ echoLine("phpver: " . PHP_VERSION . PHP_EOL);
 //var_dump(TimeUtil::Hour());
 //
 //var_dump(date('YmdH'));
-$arr = (array) GameConfig::item_weapon();
-var_dump($arr);
-uksort($arr, function ($a, $b) {
-    return intval($a) < intval($b);
-});
+//$arr = (array) GameConfig::item_weapon();
 //var_dump($arr);
-$wp = null;
-$hero_typeId = 101005;
-foreach ($arr as $id => $mo) {
-//            isEditor() and $mo = new \sm_item_weapon();
-    $heroList = explode(',', $mo->hero_id);
-    foreach ($heroList as $hero_id) {
-        if ($hero_id == $hero_typeId) {
-            $wp = $mo;
-            break;
-        }
-    }
-}
-var_dump($wp);
+//uksort($arr, function ($a, $b) {
+//    return intval($a) < intval($b);
+//});
+////var_dump($arr);
+//$wp = null;
+//$hero_typeId = 101005;
+//foreach ($arr as $id => $mo) {
+////            isEditor() and $mo = new \sm_item_weapon();
+//    $heroList = explode(',', $mo->hero_id);
+//    foreach ($heroList as $hero_id) {
+//        if ($hero_id == $hero_typeId) {
+//            $wp = $mo;
+//            break;
+//        }
+//    }
+//}
+//var_dump($wp);

+ 2 - 2
Gameserver/Docs/DecodePetconf.php

@@ -10,7 +10,7 @@ $handle = fopen($filename, "rb");
 $contents = fread($handle, filesize($filename));
 fclose($handle);
 
-// $str = gzuncompress(base64_decode($contents));
+$str = gzuncompress(base64_decode($contents));
 
-$str = gzinflate(base64_decode($contents));
+// $str = gzinflate(base64_decode($contents));
 echo $str;

Diferenças do arquivo suprimidas por serem muito extensas
+ 0 - 0
Gameserver/Docs/bak.bak


Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff