牟新芬 4 년 전
부모
커밋
cc552b4835
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/model/api/Product.php

+ 1 - 1
app/model/api/Product.php

@@ -35,7 +35,7 @@ class Product extends Model
             }
         }else{
             if($data['sort'] == 'sort'){
-                $model->where('is_best', 1)->order('stars DESC, add_time DESC');
+                $model->where('stars', '>', 1)->order('stars DESC, add_time DESC');
             }
         }
         if($data['sort'] == 'sales'){