回滚swoole更改

This commit is contained in:
耗子 2025-06-09 05:08:47 +08:00
parent 5add791ef1
commit 904c3ceb5b
No known key found for this signature in database
GPG Key ID: C964D7226D045DAA

View File

@ -45,7 +45,7 @@ class Dmtask extends Command
private function runtask()
{
\Co::set(['hook_flags' => SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_NATIVE_CURL]);
\Co::set(['hook_flags' => SWOOLE_HOOK_ALL]);
\Co\run(function () {
$date = date("Ymd");
$count = config_get('run_count', null, true) ?? 0;