This commit is contained in:
wangjinlei
2021-04-15 09:35:03 +08:00
parent 11da1a782b
commit 15de0ec6e6
4 changed files with 202 additions and 98 deletions

View File

@@ -986,7 +986,7 @@ class Article extends Controller {
private function save_article_file($article_id, $user_id, $username, $url, $type_name) {
//首先确定数据库里面是否存在此数据
$res = $this->article_file_obj->where(['file_url' => $url])->find();
if ($res) {
if ($res) {//编辑的时候不能重复存储
return true;
}else if($type_name=='picturesAndTables' && $url == ''){
return true;