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