This commit is contained in:
wangjinlei
2022-04-06 18:02:23 +08:00
parent 60fa28af02
commit e34f87de36
2 changed files with 5 additions and 1 deletions

5
.gitignore vendored
View File

@@ -1,3 +1,6 @@
.idea .idea
composer.lock composer.lock
*.log *.log
/public
/config
/nbproject

View File

@@ -1772,6 +1772,7 @@ class Article extends Controller {
* 存储article文件历史信息 * 存储article文件历史信息
*/ */
private function save_article_file($article_id, $user_id, $username, $url, $type_name) { private function save_article_file($article_id, $user_id, $username, $url, $type_name) {
//首先确定数据库里面是否存在此数据 //首先确定数据库里面是否存在此数据
$res = $this->article_file_obj->where(['file_url' => $url])->find(); $res = $this->article_file_obj->where(['file_url' => $url])->find();
if ($res) {//编辑的时候不能重复存储 if ($res) {//编辑的时候不能重复存储