Commit 5d2fd7bb authored by 喻天's avatar 喻天

fix: 视频增加—site

parent ab2fbae1
......@@ -22,13 +22,9 @@ class App extends React.Component {
if (VideoInfo.url) {
this.create(this.refs[`myVideo` + VideoInfo.id], `key`, JessibucaObj);
setTimeout(() => {
let code = window.independence
? window.siteCode
: window.globalConfig?.userInfo?.site || localStorage.getItem('token');
this.play(
VideoInfo.url + `/${VideoInfo.dataRate == 'Sub' ? 2 : 1}?Civ_Site=${code}`,
`key`,
);
let code = window.independence ? window.siteCode : window.globalConfig?.userInfo?.site;
let siteInfo = !code ? '' : `?Civ_Site=${code}&&_site=${code}`;
this.play(VideoInfo.url + `/${VideoInfo.dataRate == 'Sub' ? 2 : 1}${siteInfo}`, `key`);
}, 10);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment