1
0
mirror of https://gitee.com/koogua/course-tencent-cloud.git synced 2025-06-25 04:07:17 +08:00

复原腾讯云点播的地址格式

This commit is contained in:
koogua 2021-06-19 10:55:13 +08:00
parent bbc88be3a3
commit 10e99c818e

View File

@ -44,9 +44,9 @@ class ChapterVod extends Service
$result = []; $result = [];
foreach ($vod->file_transcode as $key => $file) { foreach ($vod->file_transcode as $key => $file) {
$url = $vodService->getPlayUrl($file['url']); $file['url'] = $vodService->getPlayUrl($file['url']);
$type = $this->getDefinitionType($file['height']); $type = $this->getDefinitionType($file['height']);
$result[$type] = ['url' => $url]; $result[$type] = $file;
} }
return $result; return $result;