fix: 修复空提交问题

This commit is contained in:
1
2025-11-16 21:27:48 +00:00
parent f01068930b
commit 0bc7db4177
2 changed files with 2 additions and 6 deletions

View File

@@ -12,11 +12,9 @@ import (
func GetServerInfoList() []ServerInfo {
dictInfoModel1 := model.NewServerList()
mType := cool.DBM(dictInfoModel1)
t, _ := mType.All()
//fmt.Println(t)
var ret []model.ServerList
t.Structs(&ret)
cool.DBM(dictInfoModel1).Scan(&ret)
//fmt.Println(t)
var ret1 []ServerInfo
ip, _ := service.NewBaseSysParamService().DataByKey(context.Background(), "server_ip")