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