From 4bb5d6569fa348135e4565af74bbd41cab4ff720 Mon Sep 17 00:00:00 2001 From: Virgil Clyne Date: Fri, 1 Nov 2024 14:52:16 +0800 Subject: [PATCH] fix(src): js Update CHANGELOG.md Update response.dev.js Update request.dev.js Update package.json Update response.js Update request.js --- CHANGELOG.md | 2 +- package.json | 2 +- src/request.dev.js | 1 + src/request.js | 1 + src/response.dev.js | 1 + src/response.js | 1 + 6 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7d7ec08..a67673e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,2 +1,2 @@ ### 🛠️ Bug Fixes - * 修复`模块/插件/重写/覆写`的`URL正则表达式`以匹配新 API 域名 + * 修复`脚本`的`switch (HOST)`以匹配新 API 域名 diff --git a/package.json b/package.json index fbea8e0..2827302 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@biliuniverse/global", - "version": "0.8.6", + "version": "0.8.7", "organizationName": "🪐 BiliUniverse", "displayName": "📺 BiliBili: 🌐 Global", "description": "哔哩哔哩:全球模式\n中国站自动线路及全区搜索", diff --git a/src/request.dev.js b/src/request.dev.js index 428657c..eef76b3 100644 --- a/src/request.dev.js +++ b/src/request.dev.js @@ -113,6 +113,7 @@ log(`⚠ FORMAT: ${FORMAT}`, ""); // 主机判断 switch (HOST) { case "grpc.biliapi.net": // HTTP/2 + case "app.biliapi.net": // HTTP/1.1 case "app.bilibili.com": // HTTP/1.1 switch (PATHs?.[0]) { case "bilibili.app.viewunite.v1.View": diff --git a/src/request.js b/src/request.js index 380f012..120ba6d 100644 --- a/src/request.js +++ b/src/request.js @@ -101,6 +101,7 @@ log(`⚠ FORMAT: ${FORMAT}`, ""); // 主机判断 switch (HOST) { case "grpc.biliapi.net": // HTTP/2 + case "app.biliapi.net": // HTTP/1.1 case "app.bilibili.com": // HTTP/1.1 switch (PATHs?.[0]) { case "bilibili.app.viewunite.v1.View": diff --git a/src/response.dev.js b/src/response.dev.js index d30a638..8d06825 100644 --- a/src/response.dev.js +++ b/src/response.dev.js @@ -190,6 +190,7 @@ log(`⚠ FORMAT: ${FORMAT}`, ""); // 主机判断 switch (HOST) { case "grpc.biliapi.net": // HTTP/2 + case "app.biliapi.net": // HTTP/1.1 case "app.bilibili.com": // HTTP/1.1 switch (PATHs?.[0]) { case "bilibili.app.viewunite.v1.View": diff --git a/src/response.js b/src/response.js index 8df89d5..5a4d364 100644 --- a/src/response.js +++ b/src/response.js @@ -181,6 +181,7 @@ log(`⚠ FORMAT: ${FORMAT}`, ""); // 主机判断 switch (HOST) { case "grpc.biliapi.net": // HTTP/2 + case "app.biliapi.net": // HTTP/1.1 case "app.bilibili.com": // HTTP/1.1 switch (PATHs?.[0]) { case "bilibili.app.viewunite.v1.View":