|
|
@ -194,14 +194,27 @@ class PromoteController extends ThinkController
|
|
|
|
parent::lists('SiteApply', $p, $map);
|
|
|
|
parent::lists('SiteApply', $p, $map);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function add($account=null, $password=null, $second_pwd=null, $real_name=null, $email=null, $mobile_phone=null, $bank_name=null, $bank_card=null, $admin=null, $status=null, $ba_id = null)
|
|
|
|
public function add($account=null, $password=null, $second_pwd=null, $real_name=null, $email=null, $mobile_phone=null,
|
|
|
|
|
|
|
|
$bank_name=null, $bank_card=null, $admin=null, $status=null, $ba_id = null, $partner_id = null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (IS_POST) {
|
|
|
|
if (IS_POST) {
|
|
|
|
if (C('PROMOTE_AUTO_AUDIT') == 1) {
|
|
|
|
if (C('PROMOTE_AUTO_AUDIT') == 1) {
|
|
|
|
$status = 1;
|
|
|
|
$status = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$data = array('account'=>$account,'password'=>$password,'second_pwd'=>$second_pwd,'real_name'=>$real_name,'email'=>$email,'mobile_phone'=>$mobile_phone,'bank_name'=>$bank_name,'bank_card'=>$bank_card,'admin_id'=>$admin,'status'=>$status,'ba_id'=>$ba_id);
|
|
|
|
$data = array(
|
|
|
|
|
|
|
|
'account'=>$account,
|
|
|
|
|
|
|
|
'password'=>$password,
|
|
|
|
|
|
|
|
'second_pwd'=>$second_pwd,
|
|
|
|
|
|
|
|
'real_name'=>$real_name,
|
|
|
|
|
|
|
|
'email'=>$email,
|
|
|
|
|
|
|
|
'mobile_phone'=>$mobile_phone,
|
|
|
|
|
|
|
|
'bank_name'=>$bank_name,
|
|
|
|
|
|
|
|
'bank_card'=>$bank_card,
|
|
|
|
|
|
|
|
'admin_id'=>$admin,
|
|
|
|
|
|
|
|
'status'=>$status,
|
|
|
|
|
|
|
|
'ba_id'=>$ba_id,
|
|
|
|
|
|
|
|
'partner_id'=>$partner_id,
|
|
|
|
|
|
|
|
);
|
|
|
|
if (preg_match('/^[a-zA-Z0-9]{6,15}$/', $account)==false) {
|
|
|
|
if (preg_match('/^[a-zA-Z0-9]{6,15}$/', $account)==false) {
|
|
|
|
$this->error('账号只能是6-15位字母或数字');
|
|
|
|
$this->error('账号只能是6-15位字母或数字');
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -215,11 +228,13 @@ class PromoteController extends ThinkController
|
|
|
|
} */
|
|
|
|
} */
|
|
|
|
$this->success("添加成功", U('lists'));
|
|
|
|
$this->success("添加成功", U('lists'));
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$this->error($res);
|
|
|
|
$this->error('添加失败');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
$this->meta_title ='新增渠道信息';
|
|
|
|
$this->meta_title ='新增渠道信息';
|
|
|
|
$this->m_title = '推广员列表';
|
|
|
|
$this->m_title = '推广员列表';
|
|
|
|
|
|
|
|
$partners = M('partner', 'tab_')->where(['status' => 1])->select();
|
|
|
|
|
|
|
|
$this->assign('partners', $partners);
|
|
|
|
$this->assign('commonset', M('Kuaijieicon')->where(['url'=>'Promote/lists/type/1','status'=>1])->find());
|
|
|
|
$this->assign('commonset', M('Kuaijieicon')->where(['url'=>'Promote/lists/type/1','status'=>1])->find());
|
|
|
|
$this->display();
|
|
|
|
$this->display();
|
|
|
|
}
|
|
|
|
}
|
|
|
|