From b513fff963eb859af22757ea51f6117b2897241a Mon Sep 17 00:00:00 2001 From: Seven Date: Wed, 14 Jan 2026 15:14:19 +0700 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B0=86=E2=80=9Cweb=E2=80=9D=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E6=9B=B4=E6=94=B9=E4=B8=BA=E2=80=9Cbrowser=E2=80=9D?= =?UTF-8?q?=EF=BC=8C=E4=BB=A5=E7=BB=9F=E4=B8=80=E7=89=88=E6=9C=AC=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=B8=AD=E7=9A=84=E5=B9=B3=E5=8F=B0=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- functions/api/version.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/functions/api/version.ts b/functions/api/version.ts index da4a3ff..c3fe9c3 100644 --- a/functions/api/version.ts +++ b/functions/api/version.ts @@ -18,7 +18,7 @@ interface Env { interface VersionConfig { ios: VersionInfo; android: VersionInfo; - web: VersionInfo; + browser: VersionInfo; } // 版本配置 - 直接在这里管理版本信息 @@ -37,7 +37,7 @@ const versionConfig: VersionConfig = { updateUrl: "https://play.google.com/store/apps/details?id=riwa.ionic.app", minSupportVersion: "0.9.0", }, - web: { + browser: { version: "0.0.1", forceUpdate: false, updateMessage: "修复了一些问题并优化了性能", @@ -49,11 +49,11 @@ const versionConfig: VersionConfig = { export const onRequestGet: PagesFunction = async (context) => { try { const { searchParams } = new URL(context.request.url); - const platform = searchParams.get("platform") || "web"; + const platform = searchParams.get("platform") || "browser"; const currentVersion = searchParams.get("currentVersion") || "0.0.1"; // 验证平台参数 - if (!["ios", "android", "web"].includes(platform)) { + if (!["ios", "android", "browser"].includes(platform)) { return new Response( JSON.stringify({ error: "Invalid platform parameter" }), {