牟新芬 4 gadi atpakaļ
vecāks
revīzija
cc552b4835
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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'){