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

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

@@ -371,7 +371,6 @@ class VideoService extends BaseService
             if($fileUrl){
                 $result = upload_video($request,'video');
                 $data = isset($result['data'])? $result['data'] : [];
-                var_dump($result);
                 $fileUrl = isset($data['file_path'])? $data['file_path'] : '';
                 if(empty($fileUrl)){
                     $this->error = 2212;
@@ -413,6 +412,7 @@ class VideoService extends BaseService
             'type'  => $type,
             'description'  => $description,
             'tags'  =>  isset($params['tags']) && $params['tags']? implode(',', $params['tags']) : '',
+            'file_url'  => $fileUrl,
             'thumb'  => $thumb,
             'albums'  => $albums? json_encode($albums) : '',
             'music_hash'  => isset($params['music_hash'])? trim($params['music_hash']) : '',