fix(route): add disable autoplay to bilibli/utils iframe (#12206)

This commit is contained in:
Fatpandac 2023-03-30 23:12:47 +08:00 committed by GitHub
parent 3a9731e4f5
commit 2aa81d9490
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -1,9 +1,10 @@
const crypto = require('crypto');
const iframe = (aid, page, bvid) =>
`<iframe src="https://player.bilibili.com/player.html?${bvid ? `bvid=${bvid}` : `aid=${aid}`}${
function iframe(aid, page, bvid) {
return `<iframe src="https://player.bilibili.com/player.html?${bvid ? `bvid=${bvid}` : `aid=${aid}`}${
page ? `&page=${page}` : ''
}&high_quality=1" width="650" height="477" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>`;
}&high_quality=1&autoplay=0" width="650" height="477" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>`;
}
const addVerifyInfo = (params, verifyString) => {
const md5 = crypto.createHash('md5');