|
|
@ -321,12 +321,12 @@ class PartnerController extends ThinkController
|
|
|
|
$save['uid'] = UID;
|
|
|
|
$save['uid'] = UID;
|
|
|
|
$save['create_time'] = time();
|
|
|
|
$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) {
|
|
|
|
if ($has_check) {
|
|
|
|
$this->error('已存在同名未审核的cp,请勿重复添加');
|
|
|
|
$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) {
|
|
|
|
if ($has_check) {
|
|
|
|
$this->error('已存在同名cp,请勿重复添加');
|
|
|
|
$this->error('已存在同名cp,请勿重复添加');
|
|
|
|
}
|
|
|
|
}
|
|
|
|