From af46fc501b1e6abca9f09fb6ac0addf7ca8688ec Mon Sep 17 00:00:00 2001 From: weifashi <605403358@qq.com> Date: Tue, 21 Nov 2023 18:45:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/ProjectTaskContent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/ProjectTaskContent.php b/app/Models/ProjectTaskContent.php index d56035e65..6e9e65445 100644 --- a/app/Models/ProjectTaskContent.php +++ b/app/Models/ProjectTaskContent.php @@ -80,7 +80,7 @@ class ProjectTaskContent extends AbstractModel $publicPath = public_path($filePath); Base::makeDir(dirname($publicPath)); $result = file_put_contents($publicPath, $content); - if(!$result){ + if(!$result && $oldContent){ info("保存任务详情至文件失败"); info($publicPath); info($oldContent);