修复bahamut在本地启动和docker场景下代理问题 (#70)
This commit is contained in:
1 parent
fa7bc04085
commit
f4dff47bc3
1 file changed
+4
-2
+4
-2
@@ -4599,7 +4599,8 @@ async function bahamutSearch(keyword) {
|
||||
|
||||
async function getBahamutEpisodes(videoSn) {
|
||||
try {
|
||||
const url = proxyUrl ? `http://127.0.0.1:5321/proxy?url=https://api.gamer.com.tw/anime/v1/video.php?videoSn=${videoSn}` : `https://api.gamer.com.tw/anime/v1/video.php?videoSn=${videoSn}`;
|
||||
const targetUrl = `https://api.gamer.com.tw/anime/v1/video.php?videoSn=${videoSn}`;
|
||||
const url = proxyUrl ? `http://127.0.0.1:5321/proxy?url=${encodeURIComponent(targetUrl)}` : targetUrl;
|
||||
const resp = await httpGet(url, {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
@@ -4638,7 +4639,8 @@ async function fetchBahamutEpisodeDanmu(videoSn) {
|
||||
let danmus = [];
|
||||
|
||||
try {
|
||||
const url = proxyUrl ? `http://127.0.0.1:5321/proxy?url=https://api.gamer.com.tw/anime/v1/danmu.php?geo=TW%2CHK&videoSn=${videoSn}` : `https://api.gamer.com.tw/anime/v1/danmu.php?geo=TW%2CHK&videoSn=${videoSn}`;
|
||||
const targetUrl = `https://api.gamer.com.tw/anime/v1/danmu.php?geo=TW%2CHK&videoSn=${videoSn}`;
|
||||
const url = proxyUrl ? `http://127.0.0.1:5321/proxy?url=${encodeURIComponent(targetUrl)}` : targetUrl;
|
||||
const resp = await httpGet(url, {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
|
||||
Reference in new issue
Block a user