This commit is contained in:
wangjinlei
2022-11-10 18:47:29 +08:00
parent 4d176060f4
commit 7bebaf5e68
3 changed files with 82 additions and 8 deletions

View File

@@ -2042,7 +2042,6 @@ 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) {//编辑的时候不能重复存储