牟新芬 4 years ago
parent
commit
cc552b4835
1 changed files with 1 additions and 1 deletions
  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'){