Skip to content

Commit

Permalink
fix: 更改 B站嵌入方式来防止误点会导致跳转 B站 (DIYgod#14517)
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlcok314159 authored Feb 23, 2024
1 parent 09eac60 commit a1bb675
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/v2/bilibili/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ const md5 = require('@/utils/md5');
const CryptoJS = require('crypto-js');

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&autoplay=0" width="650" height="477" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>`;
return `<iframe src="https://www.bilibili.com/blackboard/html5mobileplayer.html?${bvid ? `bvid=${bvid}` : `aid=${aid}`}${page ? `&page=${page}` : ''
}&high_quality=1&autoplay=0" width="650" height="477" scrolling="no" border="0" frameborder="no" framespacing="0" allowfullscreen="true"></iframe>`;
}


// a
function randomHexStr(length) {
let string = '';
Expand Down

0 comments on commit a1bb675

Please sign in to comment.