diff --git a/app/common/repositories/store/product/SpuRepository.php b/app/common/repositories/store/product/SpuRepository.php index a46ef148..3ce2c637 100644 --- a/app/common/repositories/store/product/SpuRepository.php +++ b/app/common/repositories/store/product/SpuRepository.php @@ -177,7 +177,7 @@ class SpuRepository extends BaseRepository }, 'issetCoupon', ]); - $list = $query->setOption('field', [])->field($this->productFiled)->orderRaw('rand()')->select(); + $list = $query->setOption('field', [])->field($this->productFiled)->select(); $append = ['stop_time','svip_price','show_svip_info','is_svip_price']; $list->append($append);