wesmiler 2 лет назад
Родитель
Сommit
f77086399d
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      app/Services/Api/VideoService.php

+ 2 - 1
app/Services/Api/VideoService.php

@@ -69,6 +69,7 @@ class VideoService extends BaseService
             ->where($where)
             ->where(function ($query) use ($params, $userId) {
                 $type = isset($params['type']) ? $params['type'] : 0;
+
                 if ($type > 0) {
                     if($type == 1){
                         // 发布的
@@ -99,7 +100,7 @@ class VideoService extends BaseService
 
                 $uid = isset($params['uid']) ? $params['uid'] : 0;
                 if ($uid > 0) {
-                    $query->where(['a.user_id'=>$uid,'a.statuss'=>2]);
+                    $query->where(['a.user_id'=>$uid,'a.status'=>2]);
                 }else{
                     $query->where('a.status', 2);
                 }