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,请勿重复添加'); }