fix: 场库视频播放问题 #6036 (#6067)

This commit is contained in:
Laam Pui
2020-11-01 15:36:52 +00:00
committed by GitHub
parent 4e10365544
commit f627233fb5
+1 -1
View File
@@ -18,7 +18,7 @@ module.exports = async (ctx) => {
const description = await ctx.cache.tryGet(link, async () => {
const res = await got.get(link, config);
const playurl = res.data.data.content_video[0].progressive[0].url;
const desc = `<video src='${playurl}' controls='controls' width='100%'></video><p>${res.data.data.intro}</p><img src='${res.data.data.image}' width='200'>`;
const desc = `<meta name="referrer" content="no-referrer"><video src='${playurl}' controls='controls' width='100%'></video><p>${res.data.data.intro}</p><img src='${res.data.data.image}' width='200'>`;
return desc;
});
return Promise.resolve({