From 5ff5c21b8e2e832831e0cdba22f868d7441e9c2c Mon Sep 17 00:00:00 2001 From: "675061370@qq.com" Date: Tue, 1 Oct 2024 17:41:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8C=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E4=B8=8D=E5=90=8C=E7=9B=98=E6=97=A0=E6=B3=95=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/Source.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/admin/controller/Source.php b/app/admin/controller/Source.php index 82680b2..7d68b0f 100644 --- a/app/admin/controller/Source.php +++ b/app/admin/controller/Source.php @@ -253,13 +253,15 @@ class Source extends QfShop } } + $is_type = $url?determineIsType($url):0; $map = []; $map[] = ['title', '=',$title]; + $map[] = ['is_type', '=',$is_type]; $res = $this->model->where($map)->find(); if (empty($res) && $url) { $data[$k]['title'] = $title; $data[$k]['url'] = $url; - $data[$k]["is_type"] = determineIsType($url); + $data[$k]["is_type"] = $is_type; $data[$k]['source_category_id'] = input('source_category_id')??0; $data[$k]['update_time'] = time(); $data[$k]['create_time'] = time();