wesmiler %!s(int64=2) %!d(string=hai) anos
pai
achega
d9fb71c639
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/Api/VideoCollectService.php

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

@@ -237,7 +237,7 @@ class VideoCollectService extends BaseService
         $collectId = isset($params['id'])? intval($params['id']) : 0;
         $type = isset($params['type'])? intval($params['type']) : 2;
         $status = isset($params['status'])? intval($params['status']) : 1;
-        if($collectId<=0 || !in_array($type, [2,3]) || !in_array($status, [2,3])){
+        if($collectId<=0 || !in_array($type, [2,3]) || !in_array($status, [1,2])){
             $this->error = 2014;
             return false;
         }