test
This commit is contained in:
parent
ae41a8e84f
commit
3655c15f4a
6
obj.go
6
obj.go
@ -764,7 +764,7 @@ func addObjItem(code string, name string, itemTypeID64 int64, weight int64, exch
|
||||
} else {
|
||||
obj.Names = append(obj.Names, name)
|
||||
cacheObjItem[code] = obj
|
||||
for _, r := range obj.Names {
|
||||
for _, n := range obj.Names {
|
||||
cacheObjItem[n] = obj
|
||||
}
|
||||
return obj.ObjID64, nil
|
||||
@ -1048,9 +1048,9 @@ func loadObjItem() error {
|
||||
n = append(n, name)
|
||||
c.Names = n
|
||||
muxObjItem.Lock()
|
||||
cacheObjItem[intl_id] = *c
|
||||
cacheObjItem[intl_id] = c
|
||||
for _, n := range c.Names {
|
||||
cacheObjItem[name] = *c
|
||||
cacheObjItem[name] = c
|
||||
}
|
||||
muxObjItem.Unlock()
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user