|
@@ -2,7 +2,6 @@
|
|
|
|
|
|
namespace app\common\model;
|
|
|
|
|
|
-use fast\Tree;
|
|
|
use think\Model;
|
|
|
|
|
|
/**
|
|
@@ -96,8 +95,6 @@ class Category extends Model
|
|
|
$query->where('cid', '=', 0);
|
|
|
})->order('weigh', 'desc')->select())->toArray();
|
|
|
}
|
|
|
-
|
|
|
- $list = Tree::instance()->init($list, 'pid')->getTreeList(Tree::instance()->getTreeArray(0), 'name');
|
|
|
return $list;
|
|
|
}
|
|
|
}
|