feat:完善项目信息
This commit is contained in:
@ -57,21 +57,6 @@ func (this *Cache) Init() {
|
||||
}
|
||||
}},
|
||||
)
|
||||
function(
|
||||
&caches{iModel: model.NewSysPlatform(), iValues: func() interface{} {
|
||||
out := make([]*model.SysPlatform, 0)
|
||||
_ = model.ScanFields(model.NewSysPlatform(), &out, []string{"id", "key", "link"})
|
||||
return out
|
||||
}, toCache: func(values interface{}) {
|
||||
out := values.([]*model.SysPlatform)
|
||||
for _, v := range out {
|
||||
if v.Link == "" {
|
||||
continue
|
||||
}
|
||||
config2.MemoryForPlatformInfo[v.Link] = v.Key
|
||||
}
|
||||
}},
|
||||
)
|
||||
}
|
||||
|
||||
func NewCache() CacheHandle {
|
||||
|
Reference in New Issue
Block a user