From 76cd530239dadd6014258c3dababf5259e633acb Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 11 Mar 2020 13:55:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=8E=B7=E5=8F=96=E5=AD=90?= =?UTF-8?q?=E6=B8=A0=E9=81=93=E5=9F=BA=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Common/Common/extend.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Application/Common/Common/extend.php b/Application/Common/Common/extend.php index 9f9414132..137cfaa5c 100644 --- a/Application/Common/Common/extend.php +++ b/Application/Common/Common/extend.php @@ -1989,15 +1989,15 @@ function getPrmoteChlidAccount($id=0,$field="*") $promote = M("promote","tab_"); //获取自己的等级 $self = $promote->field("chain,level")->where("id = '{$id}'")->find(); - + if($self['chain'] == "/"){ + $self['chain'] = "/".$id."/"; + } $map['status'] = 1; $map["chain"] = array("LIKE","%{$self['chain']}%"); $map["level"] = array("GT",$self['level']); - $data = $promote->field($field)->where($map)->select(); if(empty($data)){return array();} return $data; - # code... } /**