|
|
@ -1585,6 +1585,7 @@ function getPowerPromoteIds()
|
|
|
|
|
|
|
|
|
|
|
|
if ($myPromote_ids) {
|
|
|
|
if ($myPromote_ids) {
|
|
|
|
if ($userAuth['data_empower_type'] == 2) {//部分会长加上自己创建的会长
|
|
|
|
if ($userAuth['data_empower_type'] == 2) {//部分会长加上自己创建的会长
|
|
|
|
|
|
|
|
|
|
|
|
// $userAuth['data_president'] .= "," . $myPromote_ids;
|
|
|
|
// $userAuth['data_president'] .= "," . $myPromote_ids;
|
|
|
|
} elseif ($userAuth['data_empower_type'] == 3) {//自己创建的会长和底下推广员
|
|
|
|
} elseif ($userAuth['data_empower_type'] == 3) {//自己创建的会长和底下推广员
|
|
|
|
$userAuth['data_president'] = $myPromote_ids;
|
|
|
|
$userAuth['data_president'] = $myPromote_ids;
|
|
|
@ -1593,6 +1594,7 @@ function getPowerPromoteIds()
|
|
|
|
if (!empty($userAuth['data_president'])) {//查询有权限查看的会长以及底下的推广员
|
|
|
|
if (!empty($userAuth['data_president'])) {//查询有权限查看的会长以及底下的推广员
|
|
|
|
$map = array();
|
|
|
|
$map = array();
|
|
|
|
//查询会长底下的推广员(首个斜杆之间的数字)
|
|
|
|
//查询会长底下的推广员(首个斜杆之间的数字)
|
|
|
|
|
|
|
|
$userAuth['data_president']= trim($userAuth['data_president'], ",");
|
|
|
|
$where['SUBSTRING_INDEX(SUBSTRING_INDEX(`chain`,"/",2),"/",-1)'] = array('exp',"IN({$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['id'] = array('in', $userAuth['data_president']);//会长本身
|
|
|
|
$where['_logic'] = 'or';
|
|
|
|
$where['_logic'] = 'or';
|
|
|
|