|
|
@ -1908,8 +1908,13 @@ function arr_count1($string){
|
|
|
|
function getPrmoteChlidAccount($id=0,$field="*")
|
|
|
|
function getPrmoteChlidAccount($id=0,$field="*")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$promote = M("promote","tab_");
|
|
|
|
$promote = M("promote","tab_");
|
|
|
|
|
|
|
|
//获取自己的等级
|
|
|
|
|
|
|
|
$self = $promote->field("chain,level")->where("id = '{$id}'")->find();
|
|
|
|
|
|
|
|
|
|
|
|
$map['status'] = 1;
|
|
|
|
$map['status'] = 1;
|
|
|
|
$map["chain"] = array("LIKE","%/{$id}/%");
|
|
|
|
$map["chain"] = array("LIKE","%{$self['chain']}%");
|
|
|
|
|
|
|
|
$map["level"] = array("GT",$self['level']);
|
|
|
|
|
|
|
|
|
|
|
|
$data = $promote->field($field)->where($map)->select();
|
|
|
|
$data = $promote->field($field)->where($map)->select();
|
|
|
|
if(empty($data)){return array();}
|
|
|
|
if(empty($data)){return array();}
|
|
|
|
return $data;
|
|
|
|
return $data;
|
|
|
|