|
|
@@ -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'){
|