随机数
This commit is contained in:
parent
e9acd6ccd9
commit
1391cf16af
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user