mirror of
https://github.com/netcccyun/dnsmgr.git
synced 2026-02-21 15:31:12 +08:00
fix
This commit is contained in:
parent
dcfc545608
commit
83c1afc186
@ -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'){
|
||||
|
||||
@ -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'){
|
||||
|
||||
Loading…
Reference in New Issue
Block a user