wesmiler 2 سال پیش
والد
کامیت
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])
         $datas = $this->model->where(['user_id'=> $userId,'source_type'=> $type,'status'=>1,'mark'=>1])
             ->where('collect_uid','>', 0)
             ->where('collect_uid','>', 0)
             ->select(['collect_uid','tags','category_id'])
             ->select(['collect_uid','tags','category_id'])
-            ->orderRaw('rand()')
+            ->orderByRaw('rand()')
             ->limit(rand(3,5))
             ->limit(rand(3,5))
             ->get();
             ->get();
         $datas = $datas? $datas->toArray() : [];
         $datas = $datas? $datas->toArray() : [];