1234567891011121314 |
- <?php
- namespace app\common\model;
- use think\Model;
- // 商品分类
- class GoodsCate extends Model
- {
- public static function getCateTree()
- {
- $all_cate = self::field('id,title,pid,lev')->where(['status'=>1,'is_deleted'=>0])->order('sort desc ,id desc')->select()->toArray();
- return $all_cate;
- }
- }
|