|
|
|
@ -2015,8 +2015,8 @@ function get_parent_promote_($prmote_id=0,$isShwo=true)
|
|
|
|
|
return $result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//获取当前子渠道
|
|
|
|
|
function get_zi_promote_id($id){
|
|
|
|
|
//获取当前子渠道,推广员列表不用过滤锁定的推广员
|
|
|
|
|
function get_zi_promote_id($id, $status = 1){
|
|
|
|
|
// $map['parent_id']=$id;
|
|
|
|
|
// $map['grand_id'] = $id;
|
|
|
|
|
// $map['_logic'] = 'or';
|
|
|
|
@ -2035,8 +2035,8 @@ function get_zi_promote_id($id){
|
|
|
|
|
if ($self['level'] == 1) {
|
|
|
|
|
$self['chain'] = "/{$id}/";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$map['status'] = 1;
|
|
|
|
|
if ($status)
|
|
|
|
|
$map['status'] = $status;
|
|
|
|
|
$map["chain"] = array("LIKE","%{$self['chain']}%");
|
|
|
|
|
$map["level"] = array("GT",$self['level']);
|
|
|
|
|
|
|
|
|
|