wesmiler 2 years ago
parent
commit
6d22eef8c6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Services/Api/VideoCollectService.php

+ 1 - 1
app/Services/Api/VideoCollectService.php

@@ -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() : [];