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")) // 用户接口加密