测试异步

This commit is contained in:
2025-12-03 10:28:05 +08:00
parent 05db9b6f02
commit a92b5d85f6
2 changed files with 19 additions and 1 deletions

View File

@@ -877,6 +877,7 @@ class Ceshi extends Controllers
} else {
// 子进程
sleep(5);
Log::record("子进程5秒后执行".json_encode($pid),"infoss");
echo "子进程5秒后执行\n";
exit(0); // 子进程结束
}