|
|
|
@ -1235,7 +1235,7 @@ class PromoteController extends ThinkController
|
|
|
|
|
$this->display();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function belong_add($promote_id=null, $company_belong = null, $company_relation = null, $remark = null)
|
|
|
|
|
public function belong_add($promote_id=null, $company_belong = null, $company_relation = null, $remark = null, $can_view_recharge = null)
|
|
|
|
|
{
|
|
|
|
|
if (IS_POST) {
|
|
|
|
|
if (empty($promote_id)) {
|
|
|
|
@ -1245,6 +1245,7 @@ class PromoteController extends ThinkController
|
|
|
|
|
'promote_id' => $promote_id,
|
|
|
|
|
'company_belong' => $company_belong,
|
|
|
|
|
'company_relation' => $company_relation,
|
|
|
|
|
'can_view_recharge' => $can_view_recharge,
|
|
|
|
|
'verify_status' => 0,
|
|
|
|
|
'remark' => $remark,
|
|
|
|
|
'applicant_id' => getAdmin(),
|
|
|
|
@ -1271,7 +1272,7 @@ class PromoteController extends ThinkController
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function belong_edit($promote_id=null, $company_belong = null, $company_relation = null, $remark = null)
|
|
|
|
|
public function belong_edit($promote_id=null, $company_belong = null, $company_relation = null, $remark = null, $can_view_recharge = null)
|
|
|
|
|
{
|
|
|
|
|
if (IS_POST) {
|
|
|
|
|
if (empty($promote_id)) {
|
|
|
|
@ -1281,6 +1282,7 @@ class PromoteController extends ThinkController
|
|
|
|
|
'promote_id' => $promote_id,
|
|
|
|
|
'company_belong' => $company_belong,
|
|
|
|
|
'company_relation' => $company_relation,
|
|
|
|
|
'can_view_recharge' => $can_view_recharge,
|
|
|
|
|
'verify_status' => 0,
|
|
|
|
|
'remark' => $remark,
|
|
|
|
|
'applicant_id' => getAdmin(),
|
|
|
|
@ -1320,7 +1322,8 @@ class PromoteController extends ThinkController
|
|
|
|
|
foreach ($promote_belongs as $promote_belong) {
|
|
|
|
|
$update = [
|
|
|
|
|
'company_belong' => $promote_belong['company_belong'],
|
|
|
|
|
'company_relation' => $promote_belong['company_relation']
|
|
|
|
|
'company_relation' => $promote_belong['company_relation'],
|
|
|
|
|
'can_view_recharge' => $promote_belong['can_view_recharge'],
|
|
|
|
|
];
|
|
|
|
|
$res = M("promote", "tab_")
|
|
|
|
|
->where("chain like '%/{$promote_belong['promote_id']}/%' or id={$promote_belong['promote_id']} ")
|
|
|
|
|