fix: 去除开站引导

This commit is contained in:
TsMask
2025-04-09 15:18:44 +08:00
parent a72a7a7c69
commit 34f4351040
2 changed files with 12 additions and 15 deletions

View File

@@ -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)

View File

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