1234567891011121314 |
- <?php
- namespace app\common\model;
- use think\Model;
- // 商品时令
- class GoodsSeason extends Model
- {
- public static function getSeasonTree()
- {
- $all_season = self::where(['status'=>1,'is_deleted'=>0])->order('sort desc ,id desc')->select();
- return make_tree($all_season);
- }
- }
|