vali 6 years ago
parent
commit
87c8f8a351
1 changed files with 5 additions and 5 deletions
  1. 5 5
      datainf/logic/HttpDangerTimer.php

+ 5 - 5
datainf/logic/HttpDangerTimer.php

@@ -48,13 +48,13 @@ class HttpDangerTimer
         }
         }
 
 
         if ($serv->worker_id == 1) {
         if ($serv->worker_id == 1) {
-            Swoole\Timer::tick(10000, function ($id) {
+            Swoole\Timer::tick(30000, function ($id) {
                 $this->HandleMatch();
                 $this->HandleMatch();
             });
             });
         }
         }
 
 
         if ($serv->worker_id == 2) {
         if ($serv->worker_id == 2) {
-            Swoole\Timer::tick(10000, function ($id) {
+            Swoole\Timer::tick(30000, function ($id) {
                 $this->HandleOrderInvalid();
                 $this->HandleOrderInvalid();
             });
             });
         }
         }
@@ -69,7 +69,7 @@ class HttpDangerTimer
 
 
         go(function () use ($token, $url) {
         go(function () use ($token, $url) {
             $furl = $url . '?token=' . $token;
             $furl = $url . '?token=' . $token;
-            $ret = post_curls($furl, ['token' => $token]);
+            $ret = file_get_contents($furl);
             $this->writeLog(['data' => json_encode(['HandleOrder'])], $ret);
             $this->writeLog(['data' => json_encode(['HandleOrder'])], $ret);
             echo "HandleMatch=>" . $furl . ' -- ret ' . "\n";
             echo "HandleMatch=>" . $furl . ' -- ret ' . "\n";
         });
         });
@@ -85,7 +85,7 @@ class HttpDangerTimer
 
 
         go(function () use ($token, $url) {
         go(function () use ($token, $url) {
             $furl = $url . '?token=' . $token;
             $furl = $url . '?token=' . $token;
-            $ret = post_curls($furl, ['token' => $token]);
+            $ret = file_get_contents($furl);
             $this->writeLog(['data' => json_encode(['HandleOrder'])], $ret);
             $this->writeLog(['data' => json_encode(['HandleOrder'])], $ret);
             echo "HandleMatch=>" . $furl . '--ret ' . "\n";
             echo "HandleMatch=>" . $furl . '--ret ' . "\n";
         });
         });
@@ -101,7 +101,7 @@ class HttpDangerTimer
 
 
         go(function () use ($token, $url) {
         go(function () use ($token, $url) {
             $furl = $url . '?token=' . $token;
             $furl = $url . '?token=' . $token;
-            $ret = post_curls($furl, ['token' => $token]);
+            $ret = file_get_contents($furl);
             $this->writeLog(['data' => json_encode(['HandleOrder'])], $ret);
             $this->writeLog(['data' => json_encode(['HandleOrder'])], $ret);
             echo "HandleMatch=>" . $furl . '--ret ' . "\n";
             echo "HandleMatch=>" . $furl . '--ret ' . "\n";
         });
         });