1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 09:34:05 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-11-16 17:39:36 +08:00
parent 104c0752e3
commit 4d34d67ddd

View File

@ -103,6 +103,10 @@ func _zone_import(m *ice.Message, prefix, chain, file string) {
head, _ := r.Read() head, _ := r.Read()
zkey := kit.Select(head[0], m.OptionFields()) zkey := kit.Select(head[0], m.OptionFields())
list := ice.Maps{} list := ice.Maps{}
times := ice.Maps{}
kit.For(m.Confv(prefix, kit.Keys(chain, HASH)), func(key string, value ice.Any) {
times[key] = kit.Format(kit.Value(value, kit.Keys(META, TIME)))
})
count := 0 count := 0
for { for {
line, e := r.Read() line, e := r.Read()
@ -126,6 +130,7 @@ func _zone_import(m *ice.Message, prefix, chain, file string) {
} }
if list[zone] == "" { if list[zone] == "" {
list[zone] = Rich(m, prefix, chain, kit.Data(zkey, zone)) list[zone] = Rich(m, prefix, chain, kit.Data(zkey, zone))
kit.If(times[list[zone]], func(t string) { m.Confv(prefix, kit.Keys(chain, HASH, list[zone], META, TIME), t) })
} }
func() { func() {
chain := kit.Keys(chain, HASH, list[zone]) chain := kit.Keys(chain, HASH, list[zone])