wesmiler 2 лет назад
Родитель
Сommit
6d22eef8c6
1 измененных файлов с 1 добавлено и 1 удалено
  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() : [];