vali 6 lat temu
rodzic
commit
990dc32d93
1 zmienionych plików z 5 dodań i 2 usunięć
  1. 5 2
      datainf/logic/HttpDangerTimer.php

+ 5 - 2
datainf/logic/HttpDangerTimer.php

@@ -48,13 +48,13 @@ class HttpDangerTimer
         }
         }
 
 
         if ($serv->worker_id == 1) {
         if ($serv->worker_id == 1) {
-            Swoole\Timer::tick(60000, function ($id) {
+            Swoole\Timer::tick(10000, function ($id) {
                 $this->HandleMatch();
                 $this->HandleMatch();
             });
             });
         }
         }
 
 
         if ($serv->worker_id == 2) {
         if ($serv->worker_id == 2) {
-            Swoole\Timer::tick(60000, function ($id) {
+            Swoole\Timer::tick(10000, function ($id) {
                 $this->HandleOrderInvalid();
                 $this->HandleOrderInvalid();
             });
             });
         }
         }
@@ -71,6 +71,7 @@ class HttpDangerTimer
             $furl = $url . '?token=' . $token;
             $furl = $url . '?token=' . $token;
             $ret = post_curls($furl, ['token' => $token]);
             $ret = post_curls($furl, ['token' => $token]);
             $this->writeLog(['data' => ['HandleOrder'], $ret]);
             $this->writeLog(['data' => ['HandleOrder'], $ret]);
+            echo "HandleOrder=>".$ret."\n" ;
         });
         });
     }
     }
 
 
@@ -86,6 +87,7 @@ class HttpDangerTimer
             $furl = $url . '?token=' . $token;
             $furl = $url . '?token=' . $token;
             $ret = post_curls($furl, ['token' => $token]);
             $ret = post_curls($furl, ['token' => $token]);
             $this->writeLog(['data' => ['HandleMatch'], $ret]);
             $this->writeLog(['data' => ['HandleMatch'], $ret]);
+            echo "HandleMatch=>".$ret."\n" ;
         });
         });
     }
     }
 
 
@@ -101,6 +103,7 @@ class HttpDangerTimer
             $furl = $url . '?token=' . $token;
             $furl = $url . '?token=' . $token;
             $ret = post_curls($furl, ['token' => $token]);
             $ret = post_curls($furl, ['token' => $token]);
             $this->writeLog(['data' => ['HandleOrderInvalid'], $ret]);
             $this->writeLog(['data' => ['HandleOrderInvalid'], $ret]);
+            echo "HandleOrderInvalid=>".$ret."\n" ;
         });
         });
     }
     }