1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-07-05 00:11:30 +08:00

修复file_transcode

This commit is contained in:
koogua 2021-02-16 16:48:39 +08:00
parent 879333adab
commit 50a5414b13

View File

@ -3,6 +3,7 @@
namespace App\Services; namespace App\Services;
use App\Repos\Chapter as ChapterRepo; use App\Repos\Chapter as ChapterRepo;
use App\Services\Vod as VodService;
class ChapterVod extends Service class ChapterVod extends Service
{ {
@ -17,12 +18,12 @@ class ChapterVod extends Service
return []; return [];
} }
$vod = new Vod(); $vodService = new VodService();
$result = []; $result = [];
foreach ($vod->file_transcode as $key => $file) { foreach ($vod->file_transcode as $key => $file) {
$file['url'] = $vod->getPlayUrl($file['url']); $file['url'] = $vodService->getPlayUrl($file['url']);
$type = $this->getDefinitionType($file['height']); $type = $this->getDefinitionType($file['height']);
$result[$type] = $file; $result[$type] = $file;
} }