From c96b074ddaa7d255471164fb531f126aedcd8343 Mon Sep 17 00:00:00 2001 From: danaisuiyuan Date: Sun, 10 May 2026 12:06:19 +0800 Subject: [PATCH] feat(api): strip CRMEB-PRO prefix from getVersion response The admin auth page rendered the raw version string from the .version file (e.g. "CRMEB-PRO v3.5.1"); strip the vendor brand prefix at the controller boundary so display matches the rebranded UI without touching internal version detection. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../app/controller/admin/v1/system/config/SystemConfig.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pro_v3.5.1/app/controller/admin/v1/system/config/SystemConfig.php b/pro_v3.5.1/app/controller/admin/v1/system/config/SystemConfig.php index 17ce5c36..bd63ebfa 100644 --- a/pro_v3.5.1/app/controller/admin/v1/system/config/SystemConfig.php +++ b/pro_v3.5.1/app/controller/admin/v1/system/config/SystemConfig.php @@ -487,10 +487,12 @@ class SystemConfig extends AuthController public function getVersion() { $version = get_crmeb_version(); + $label = strripos($version, 'min') === false ? 3 : 2; + $displayVersion = preg_replace('/^CRMEB-PRO\s*/i', '', (string)$version); return $this->success([ - 'version' => $version, - 'label' => strripos($version, 'min') === false ? 3 : 2 + 'version' => $displayVersion, + 'label' => $label, ]); }