Commit e260d184 by 王召彬

调用sleep时判断是否是协程模式

parent fc0237cb
......@@ -63,7 +63,11 @@ class ClsLog
if($res->getResponse()->getStatusCode() == 200) {
return true;
}
Coroutine::sleep(1);
if (App::isCoContext()) {
Coroutine::sleep(1);
} else {
sleep(1);
}
}
$msg = '上传腾讯云日志服务失败:'.$res->getResult();
self::writeClsErrors($msg);
......
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