|
|
|
@ -1899,6 +1899,22 @@ function arr_count1($string){
|
|
|
|
|
}
|
|
|
|
|
return $cou;
|
|
|
|
|
}
|
|
|
|
|
/**
|
|
|
|
|
* 获取新推广权限后底下推广员子账号
|
|
|
|
|
* @param int $id 推广员id
|
|
|
|
|
* @param array,string 查询字段
|
|
|
|
|
* @return array
|
|
|
|
|
*/
|
|
|
|
|
function getPrmoteChlidAccount($id=0,$field="*")
|
|
|
|
|
{
|
|
|
|
|
$promote = M("promote","tab_");
|
|
|
|
|
$map['status'] = 1;
|
|
|
|
|
$map["chain"] = array("LIKE","%/{$id}/%");
|
|
|
|
|
$data = $promote->field($field)->where($map)->select();
|
|
|
|
|
if(empty($data)){return array();}
|
|
|
|
|
return $data;
|
|
|
|
|
# code...
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
*获取推广员子账号
|
|
|
|
|