Commit 3a630b58 by 王召彬

ClsLog延迟时判断协程模式

parent c4903972
......@@ -63,6 +63,11 @@ class ClsLog
if($res->getResponse()->getStatusCode() == 200) {
return true;
}
if (App::isCoContext()) {
Coroutine::sleep(2);
} else {
sleep(2);
}
}
$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