|
|
|
@ -267,7 +267,7 @@ class PromoteController extends ThinkController
|
|
|
|
|
|
|
|
|
|
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, $company_id = null,
|
|
|
|
|
$withdraw_show = null,$withdraw_done = null)
|
|
|
|
|
$withdraw_show = null,$withdraw_done = null,$can_view_recharge = null)
|
|
|
|
|
{
|
|
|
|
|
if (IS_POST) {
|
|
|
|
|
if (C('PROMOTE_AUTO_AUDIT') == 1) {
|
|
|
|
@ -308,6 +308,7 @@ class PromoteController extends ThinkController
|
|
|
|
|
'company_relation' => $company_relation,
|
|
|
|
|
'withdraw_show'=>$withdraw_show,
|
|
|
|
|
'withdraw_done'=>$withdraw_done,
|
|
|
|
|
'can_view_recharge'=>$can_view_recharge
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
if (preg_match('/^[a-zA-Z0-9]{6,15}$/', $account)==false) {
|
|
|
|
@ -423,6 +424,7 @@ class PromoteController extends ThinkController
|
|
|
|
|
|
|
|
|
|
$data['withdraw_show'] = $_POST['withdraw_show'];
|
|
|
|
|
$data['withdraw_done'] = $_POST['withdraw_done'];
|
|
|
|
|
$data['can_view_recharge'] = $_POST['can_view_recharge'];
|
|
|
|
|
|
|
|
|
|
if (empty($pwd)) {
|
|
|
|
|
unset($data['password']);
|
|
|
|
|