|
|
|
@ -1223,6 +1223,10 @@ class PromoteController extends ThinkController
|
|
|
|
|
$map['pb.can_view_recharge'] = I('can_view_recharge');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!is_null(I('company_type', null))) {
|
|
|
|
|
$map['pb.company_type'] = I('company_type');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!is_null(I('company_id', null))) {
|
|
|
|
|
$map['p.company_id'] = I('company_id');
|
|
|
|
|
}
|
|
|
|
@ -1265,7 +1269,7 @@ class PromoteController extends ThinkController
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function belong_add($promote_id=null, $company_belong = null, $company_relation = null, $remark = null, $can_view_recharge = null)
|
|
|
|
|
public function belong_add($promote_id=null, $company_belong = null, $company_relation = null, $remark = null, $can_view_recharge = null, $company_type = null)
|
|
|
|
|
{
|
|
|
|
|
if (IS_POST) {
|
|
|
|
|
if (empty($promote_id)) {
|
|
|
|
@ -1276,6 +1280,7 @@ class PromoteController extends ThinkController
|
|
|
|
|
'company_belong' => $company_belong,
|
|
|
|
|
'company_relation' => $company_relation,
|
|
|
|
|
'can_view_recharge' => $can_view_recharge,
|
|
|
|
|
'company_type' => $company_type,
|
|
|
|
|
'verify_status' => 0,
|
|
|
|
|
'remark' => $remark,
|
|
|
|
|
'applicant_id' => getAdmin(),
|
|
|
|
@ -1302,7 +1307,7 @@ class PromoteController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function belong_edit($promote_id=null, $company_belong = null, $company_relation = null, $remark = null, $can_view_recharge = null)
|
|
|
|
|
public function belong_edit($promote_id=null, $company_belong = null, $company_relation = null, $remark = null, $can_view_recharge = null, $company_type = null)
|
|
|
|
|
{
|
|
|
|
|
if (IS_POST) {
|
|
|
|
|
if (empty($promote_id)) {
|
|
|
|
@ -1313,6 +1318,7 @@ class PromoteController extends ThinkController
|
|
|
|
|
'company_belong' => $company_belong,
|
|
|
|
|
'company_relation' => $company_relation,
|
|
|
|
|
'can_view_recharge' => $can_view_recharge,
|
|
|
|
|
'company_type' => $company_type,
|
|
|
|
|
'verify_status' => 0,
|
|
|
|
|
'remark' => $remark,
|
|
|
|
|
'applicant_id' => getAdmin(),
|
|
|
|
|