作者 邓超

xd

... ... @@ -30,13 +30,13 @@ class NavLogic extends BaseLogic
*/
public function list(){
$where = [];
if(!empty($this->param['location'])){
$where[] = ['location','=',$this->param['location']];
if(!empty($this->requestAll['location'])){
$where[] = ['location','=',$this->requestAll['location']];
}
$lists = $this->getList($where,['sort'=>'asc'],['*'],false);
$isTree = $this->param['tree']??false;
$isTree = $this->requestAll['tree']??false;
if($isTree){
$lists = list_to_tree($lists);
... ...