随机数

This commit is contained in:
mkm 2023-05-17 16:11:36 +08:00
parent e9acd6ccd9
commit 1391cf16af

View File

@ -171,7 +171,7 @@ class SpuRepository extends BaseRepository
},
'issetCoupon',
]);
$list = $query->page($page, $limit)->setOption('field', [])->field($this->productFiled)->select();
$list = $query->page($page, $limit)->setOption('field', [])->field($this->productFiled)->orderRaw('rand()')->select();
$append = ['stop_time','svip_price','show_svip_info','is_svip_price'];
$list->append($append);