|
|
@@ -203,7 +203,7 @@ class VideoCollectService extends BaseService
|
|
|
$datas = $this->model->where(['user_id'=> $userId,'source_type'=> $type,'status'=>1,'mark'=>1])
|
|
|
->where('collect_uid','>', 0)
|
|
|
->select(['collect_uid','tags','category_id'])
|
|
|
- ->orderRaw('rand()')
|
|
|
+ ->orderByRaw('rand()')
|
|
|
->limit(rand(3,5))
|
|
|
->get();
|
|
|
$datas = $datas? $datas->toArray() : [];
|