GoodsSeason.php 303 B

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