From a2f57bc4198099c291bb482c5ade0be92ba301fc Mon Sep 17 00:00:00 2001 From: xRain Date: Thu, 23 Apr 2026 20:16:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86AppVersion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/simapi.core.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/simapi.core.ts b/src/simapi.core.ts index bf5c347..bbcabf4 100644 --- a/src/simapi.core.ts +++ b/src/simapi.core.ts @@ -27,6 +27,7 @@ export type { } from './types' declare const SimApiVersion: string; +declare const AppVersion: string; // ── Helper: Fetch with Timeout ──────────────────────────────────────── function fetchWithTimeout( @@ -203,7 +204,7 @@ export class SimApiCore { */ async getVersion(endpointName?: string): Promise { const versions: SimApiVersions = { - uiApp: '0.0.0-develop', + uiApp: typeof AppVersion === 'undefined' ? "0.0.0-develop" : AppVersion, uiSimApi: typeof SimApiVersion === 'undefined' ? "0.0.0-develop" : SimApiVersion, apiApp: '0.0.0', apiSimApi: '0.0.0',