diff --git a/functions/api/version.ts b/functions/api/version.ts index 51de42d..1348f2e 100644 --- a/functions/api/version.ts +++ b/functions/api/version.ts @@ -24,21 +24,21 @@ interface VersionConfig { // 版本配置 - 直接在这里管理版本信息 const versionConfig: VersionConfig = { ios: { - version: "0.0.1", + version: "0.0.2", forceUpdate: false, updateMessage: "修复了一些问题并优化了性能", updateUrl: "https://apps.apple.com/app/id123456789", minSupportVersion: "0.0.1", }, android: { - version: "0.0.1", + version: "0.0.2", forceUpdate: false, updateMessage: "修复了一些问题并优化了性能", updateUrl: "https://play.google.com/store/apps/details?id=riwa.ionic.app", minSupportVersion: "0.0.1", }, browser: { - version: "0.0.1", + version: "0.0.2", forceUpdate: false, updateMessage: "修复了一些问题并优化了性能", updateUrl: "", @@ -50,7 +50,6 @@ export const onRequestGet: PagesFunction = async (context) => { try { const { searchParams } = new URL(context.request.url); const platform = searchParams.get("platform") || "browser"; - const currentVersion = searchParams.get("currentVersion") || "0.0.1"; // 验证平台参数 if (!["ios", "android", "browser"].includes(platform)) { diff --git a/package.json b/package.json index 3363cb3..13dec12 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "riwa-ionic", "type": "module", - "version": "0.0.1", + "version": "0.0.2", "private": true, "description": "An Ionic project", "scripts": {