This commit is contained in:
wangjinlei
2022-05-24 16:20:46 +08:00
parent 154f90ce3d
commit 289e28ed59

View File

@@ -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;