Commit af7916a1 authored by shajiaiming's avatar shajiaiming

fix

parent 82ec46cc
......@@ -48,8 +48,8 @@ class TickerController extends Controller
$curl = new Curl();
foreach ($currency_model as $val) {
if (1111 == $val->currency->pj_id) continue;
go(function () use ($val, $curl) {
\Co::sleep(0.5);
//go(function () use ($val, $curl) {
// \Co::sleep(0.5);
$response = $curl->setPostParams([
'erectDate' => '',
'nothing' => '',
......@@ -68,7 +68,7 @@ class TickerController extends Controller
}
}
}
});
//});
}
echo date('Y-m-d H:i:s') . '计价货币更新成功' . PHP_EOL;
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment