Commit 134fe2ea by 王召彬

Merge branch 'fixbug-clslog' into test

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