This commit is contained in:
net909 2024-12-22 11:09:54 +08:00
parent dcfc545608
commit 83c1afc186
2 changed files with 2 additions and 0 deletions

View File

@ -131,6 +131,7 @@ class CertDeployService
private function saveLog($txt)
{
if (empty($this->task['processid'])) return;
if (!is_dir(app()->getRuntimePath() . 'log')) mkdir(app()->getRuntimePath() . 'log');
$file_name = app()->getRuntimePath().'log/'.$this->task['processid'].'.log';
file_put_contents($file_name, $txt . PHP_EOL, FILE_APPEND);
if(php_sapi_name() == 'cli'){

View File

@ -417,6 +417,7 @@ class CertOrderService
private function saveLog($txt)
{
if (empty($this->order['processid'])) return;
if (!is_dir(app()->getRuntimePath() . 'log')) mkdir(app()->getRuntimePath() . 'log');
$file_name = app()->getRuntimePath().'log/'.$this->order['processid'].'.log';
file_put_contents($file_name, $txt . PHP_EOL, FILE_APPEND);
if(php_sapi_name() == 'cli'){