From 57b692cd67d0521aa982d96216d29536f2997636 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Tue, 25 Aug 2020 17:21:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=B8=8A=E6=B8=B8=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/PartnerController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/PartnerController.class.php b/Application/Admin/Controller/PartnerController.class.php index 6ad244e4c..b30c63d31 100644 --- a/Application/Admin/Controller/PartnerController.class.php +++ b/Application/Admin/Controller/PartnerController.class.php @@ -321,12 +321,12 @@ class PartnerController extends ThinkController $save['uid'] = UID; $save['create_time'] = time(); - $has_check = M("partner_verify","tab_")->where(["partner_name"=>$partner_info['partner'],"verify_status"=>0])->field("id")->find(); + $has_check = M("partner_verify","tab_")->where(["partner_name"=>$save['partner'],"verify_status"=>0])->field("id")->find(); if ($has_check) { $this->error('已存在同名未审核的cp,请勿重复添加'); } - $has_check = M("partner","tab_")->where(["partner_name"=>$partner_info['partner']])->field("id")->find(); + $has_check = M("partner","tab_")->where(["partner"=>$save['partner']])->field("id")->find(); if ($has_check) { $this->error('已存在同名cp,请勿重复添加'); }