diff --git a/application/api/controller/Article.php b/application/api/controller/Article.php index d2f544a..1caa13e 100644 --- a/application/api/controller/Article.php +++ b/application/api/controller/Article.php @@ -1863,11 +1863,11 @@ class Article extends Controller { $res = $this->article_file_obj->where(['file_url' => $url])->find(); if ($res) {//编辑的时候不能重复存储 return true; - }else if($type_name=='picturesAndTables' && $url == ''){ + }else if($type_name=='picturesAndTables' && trim($url) == ''){ return true; - }else if($type_name=='coverLetter' && $url == ''){ + }else if($type_name=='coverLetter' && trim($url) == ''){ return true; - }else if($type_name=='totalpage' && $url == ''){ + }else if($type_name=='totalpage' && trim($url) == ''){ return true; } $insert_data['article_id'] = $article_id;