From e34f87de3631fd81b63f9456e3f85fe9a362f69a Mon Sep 17 00:00:00 2001 From: wangjinlei <751475802@qq.com> Date: Wed, 6 Apr 2022 18:02:23 +0800 Subject: [PATCH] 20220406 --- .gitignore | 5 ++++- application/api/controller/Article.php | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 31bd15a..d6fafd7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,6 @@ .idea composer.lock -*.log \ No newline at end of file +*.log +/public +/config +/nbproject \ No newline at end of file diff --git a/application/api/controller/Article.php b/application/api/controller/Article.php index ae07572..389d216 100644 --- a/application/api/controller/Article.php +++ b/application/api/controller/Article.php @@ -1772,6 +1772,7 @@ class Article extends Controller { * 存储article文件历史信息 */ 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) {//编辑的时候不能重复存储