From f81df14fdeefb03125f61929c9944d46cadaeec4 Mon Sep 17 00:00:00 2001 From: hitsword Date: Thu, 9 Jan 2020 21:34:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A4=E6=96=AD=E6=96=B9=E6=B3=95=E5=86=99?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: hitsword --- hyproxy-cli.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hyproxy-cli.php b/hyproxy-cli.php index 9d2fb83..2593e62 100644 --- a/hyproxy-cli.php +++ b/hyproxy-cli.php @@ -136,11 +136,11 @@ } $filebytes = file_put_contents(_HYCONF.$row['server_name'].'.conf', $conf); //写入内容 //access_log_path不存在的话创建 - if (file_exists(!$row['access_log_path'])) { + if (!file_exists($row['access_log_path'])) { file_put_contents($row['access_log_path'], ''); } //error_log_path不存在的话创建 - if (file_exists(!$row['error_log_path'])) { + if (!file_exists($row['error_log_path'])) { file_put_contents($row['error_log_path'], ''); } }