Merge branch 'hotfix/add_company_partner' of wmtx/platform into release

优化上游添加错误
master
陈志 4 years ago committed by Gogs
commit fbdab69c71

@ -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