From 34f43510408c0b33189d932f5a6bc3da790ae207 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Wed, 9 Apr 2025 15:18:44 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4=E5=BC=80=E7=AB=99?= =?UTF-8?q?=E5=BC=95=E5=AF=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app.go | 3 +-- src/modules/common/service/commont.go | 24 +++++++++++------------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/src/app.go b/src/app.go index dbf5d269..e3bc6847 100644 --- a/src/app.go +++ b/src/app.go @@ -7,7 +7,6 @@ import ( "be.ems/src/framework/errorcatch" "be.ems/src/framework/middleware" "be.ems/src/framework/middleware/security" - "be.ems/src/framework/utils/machine" "be.ems/src/modules/chart" "be.ems/src/modules/common" "be.ems/src/modules/crontask" @@ -33,7 +32,7 @@ func AppEngine() *gin.Engine { initModulesRoute(app) // 首次安装启动记录 - machine.Launch() + // machine.Launch() // 读取服务配置 app.ForwardedByClientIP = config.Get("server.proxy").(bool) diff --git a/src/modules/common/service/commont.go b/src/modules/common/service/commont.go index e9d7d101..d1669df8 100644 --- a/src/modules/common/service/commont.go +++ b/src/modules/common/service/commont.go @@ -5,8 +5,6 @@ import ( "be.ems/lib/global" "be.ems/src/framework/config" - "be.ems/src/framework/constants" - "be.ems/src/framework/utils/machine" systemService "be.ems/src/modules/system/service" ) @@ -27,18 +25,18 @@ func (s *Commont) SystemConfigInfo() map[string]string { infoMap := map[string]string{} // 获取打包注入的全局变量信息 infoMap["version"] = global.Version - infoMap["buildTime"] = global.BuildTime + // infoMap["buildTime"] = global.BuildTime // 系统首次使用标记 - launchInfo := machine.LaunchInfo - if launchInfo != nil { - if v, ok := launchInfo[constants.LAUNCH_BOOTLOADER]; ok { - infoMap[constants.LAUNCH_BOOTLOADER] = fmt.Sprint(v) - } else { - infoMap[constants.LAUNCH_BOOTLOADER] = "true" - } - } else { - infoMap[constants.LAUNCH_BOOTLOADER] = "true" - } + // launchInfo := machine.LaunchInfo + // if launchInfo != nil { + // if v, ok := launchInfo[constants.LAUNCH_BOOTLOADER]; ok { + // infoMap[constants.LAUNCH_BOOTLOADER] = fmt.Sprint(v) + // } else { + // infoMap[constants.LAUNCH_BOOTLOADER] = "true" + // } + // } else { + // infoMap[constants.LAUNCH_BOOTLOADER] = "true" + // } // 用户登录认证 infoMap["loginAuth"] = fmt.Sprint(config.Get("user.loginAuth")) // 用户接口加密