修复随机错误

This commit is contained in:
mkm 2023-05-22 10:10:03 +08:00
parent bbf53a6a1f
commit 8e1532f17d

View File

@ -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);