diff --git a/src/request.dev.js b/src/request.dev.js index 66b3a0b..fdc38d1 100644 --- a/src/request.dev.js +++ b/src/request.dev.js @@ -24,7 +24,10 @@ log(`⚠ METHOD: ${METHOD}, HOST: ${HOST}, PATH: ${PATH}`, ""); const FORMAT = ($request.headers?.["Content-Type"] ?? $request.headers?.["content-type"])?.split(";")?.[0]; log(`⚠ FORMAT: ${FORMAT}`, ""); !(async () => { - // 读取设置 + /** + * 设置 + * @type {{Settings: import('./types').Settings}} + */ const { Settings, Caches, Configs } = setENV("BiliBili", "Global", database); log(`⚠ Settings.Switch: ${Settings?.Switch}`, ""); switch (Settings.Switch) { diff --git a/src/request.js b/src/request.js index 9fe0f39..d4eab37 100644 --- a/src/request.js +++ b/src/request.js @@ -23,7 +23,10 @@ log(`⚠ METHOD: ${METHOD}, HOST: ${HOST}, PATH: ${PATH}`, ""); const FORMAT = ($request.headers?.["Content-Type"] ?? $request.headers?.["content-type"])?.split(";")?.[0]; log(`⚠ FORMAT: ${FORMAT}`, ""); !(async () => { - // 读取设置 + /** + * 设置 + * @type {{Settings: import('./types').Settings}} + */ const { Settings, Caches, Configs } = setENV("BiliBili", "Global", database); log(`⚠ Settings.Switch: ${Settings?.Switch}`, ""); switch (Settings.Switch) { @@ -205,7 +208,8 @@ log(`⚠ FORMAT: ${FORMAT}`, ""); switch (PATHs?.[0]) { case "bangumi": // 番剧-web switch (PATHs?.[1]) { - case "play": { // 番剧-播放页-web + case "play": { + // 番剧-播放页-web const URLRegex = /ss(?[0-9]+)|ep(?[0-9]+)/; ({ seasonId: infoGroup.seasonId, epId: infoGroup.epId } = PATHs?.[2].match(URLRegex)?.groups); infoGroup.seasonId = Number.parseInt(infoGroup.seasonId, 10) || infoGroup.seasonId; diff --git a/src/response.dev.js b/src/response.dev.js index 2740b56..6659905 100644 --- a/src/response.dev.js +++ b/src/response.dev.js @@ -18,7 +18,10 @@ log(`⚠ METHOD: ${METHOD}, HOST: ${HOST}, PATH: ${PATH}`, ""); const FORMAT = ($response.headers?.["Content-Type"] ?? $response.headers?.["content-type"])?.split(";")?.[0]; log(`⚠ FORMAT: ${FORMAT}`, ""); !(async () => { - // 读取设置 + /** + * 设置 + * @type {{Settings: import('./types').Settings}} + */ const { Settings, Caches, Configs } = setENV("BiliBili", "Global", database); log(`⚠ Settings.Switch: ${Settings?.Switch}`, ""); switch (Settings.Switch) { diff --git a/src/response.js b/src/response.js index 8a66efe..4663274 100644 --- a/src/response.js +++ b/src/response.js @@ -18,7 +18,10 @@ log(`⚠ METHOD: ${METHOD}, HOST: ${HOST}, PATH: ${PATH}`, ""); const FORMAT = ($response.headers?.["Content-Type"] ?? $response.headers?.["content-type"])?.split(";")?.[0]; log(`⚠ FORMAT: ${FORMAT}`, ""); !(async () => { - // 读取设置 + /** + * 设置 + * @type {{Settings: import('./types').Settings}} + */ const { Settings, Caches, Configs } = setENV("BiliBili", "Global", database); log(`⚠ Settings.Switch: ${Settings?.Switch}`, ""); switch (Settings.Switch) {