diff --git a/Application/Admin/Common/extend.php b/Application/Admin/Common/extend.php index e720bc776..a49fc2bde 100644 --- a/Application/Admin/Common/extend.php +++ b/Application/Admin/Common/extend.php @@ -1585,6 +1585,7 @@ function getPowerPromoteIds() if ($myPromote_ids) { if ($userAuth['data_empower_type'] == 2) {//部分会长加上自己创建的会长 + // $userAuth['data_president'] .= "," . $myPromote_ids; } elseif ($userAuth['data_empower_type'] == 3) {//自己创建的会长和底下推广员 $userAuth['data_president'] = $myPromote_ids; @@ -1593,6 +1594,7 @@ function getPowerPromoteIds() if (!empty($userAuth['data_president'])) {//查询有权限查看的会长以及底下的推广员 $map = array(); //查询会长底下的推广员(首个斜杆之间的数字) + $userAuth['data_president']= trim($userAuth['data_president'], ","); $where['SUBSTRING_INDEX(SUBSTRING_INDEX(`chain`,"/",2),"/",-1)'] = array('exp',"IN({$userAuth['data_president']})"); $where['id'] = array('in', $userAuth['data_president']);//会长本身 $where['_logic'] = 'or'; diff --git a/Application/Admin/Controller/PromoteController.class.php b/Application/Admin/Controller/PromoteController.class.php index 8cca0add6..c5911a65c 100644 --- a/Application/Admin/Controller/PromoteController.class.php +++ b/Application/Admin/Controller/PromoteController.class.php @@ -224,7 +224,7 @@ class PromoteController extends ThinkController session('user_auth_promote_ids', null); $this->success("添加成功", U('lists')); } else { - $this->error($res); + $this->error('添加失败'); } } else { $this->meta_title ='新增渠道信息'; diff --git a/Application/Base/Service/PromoteService.class.php b/Application/Base/Service/PromoteService.class.php index 608415871..28d2a1383 100644 --- a/Application/Base/Service/PromoteService.class.php +++ b/Application/Base/Service/PromoteService.class.php @@ -934,7 +934,6 @@ class PromoteService { 'mobile_phone' => $params['mobile_phone'], 'bank_name' => $params['bank_name'] ?? '', 'bank_card' => $params['bank_card'], -// 'status' => 1, 'parent_id' => $parent ? $parent['id'] : 0, 'parent_name' => $parent ? $parent['account'] : '官方渠道', 'admin_id' => $params['admin_id'] ?? 0,