feat: 新增系统配置信息获取序列号

This commit is contained in:
TsMask
2023-12-22 15:17:57 +08:00
parent d29052e9d5
commit 4165e8f224

View File

@@ -1,7 +1,10 @@
package service
import (
"fmt"
"ems.agt/lib/global"
"ems.agt/src/framework/config"
systemService "ems.agt/src/modules/system/service"
)
@@ -26,6 +29,8 @@ func (s *CommontImpl) SystemConfigInfo() map[string]string {
infoMap["version"] = global.Version
infoMap["buildTime"] = global.BuildTime
infoMap["goVer"] = global.GoVer
// 序列号
infoMap["serialNum"] = fmt.Sprint(config.Get("omc.sn"))
// 获取LOGO类型
logoType := s.sysConfigService.SelectConfigValueByKey("sys.logo.type")
infoMap["logoType"] = logoType