优化部分代码

This commit is contained in:
耗子
2025-06-09 01:43:58 +08:00
parent 848610ffe0
commit 1021deb60d
3 changed files with 13 additions and 18 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class Dmtask extends Command
private function runtask()
{
\Co::set(['hook_flags' => SWOOLE_HOOK_ALL]);
\Co::set(['hook_flags' => SWOOLE_HOOK_ALL ^ SWOOLE_HOOK_NATIVE_CURL]);
\Co\run(function () {
$date = date("Ymd");
$count = config_get('run_count', null, true) ?? 0;