优化上游添加错误

master
chenzhi 4 years ago
parent f0aa844244
commit 57b692cd67

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

Loading…
Cancel
Save