fix
This commit is contained in:
parent
b42cddd0ff
commit
9417e7b467
@ -64,7 +64,7 @@ async function getVideoCoverFromVod(fileId) {
|
|||||||
// 生成VOD防盗链签名URL
|
// 生成VOD防盗链签名URL
|
||||||
// 根据腾讯云文档:https://cloud.tencent.com/document/product/266/14047
|
// 根据腾讯云文档:https://cloud.tencent.com/document/product/266/14047
|
||||||
// 签名算法:sign = MD5(KEY + Dir + t + us)
|
// 签名算法:sign = MD5(KEY + Dir + t + us)
|
||||||
function generateSignedUrl(videoUrl, signKey, expirationTime = 3600) {
|
function generateSignedUrl(videoUrl, signKey, expirationTime = 86400) {
|
||||||
if (!signKey || !videoUrl) {
|
if (!signKey || !videoUrl) {
|
||||||
return videoUrl;
|
return videoUrl;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user