test
This commit is contained in:
parent
3655c15f4a
commit
0bd8ba4d9a
5
obj.go
5
obj.go
@ -945,8 +945,7 @@ func getSilentObjItemID(code string, name string) int64 {
|
||||
}
|
||||
|
||||
func loadObjItem2() error {
|
||||
var items, items2 []ChatWarsItem
|
||||
var count int64
|
||||
var items []ChatWarsItem
|
||||
|
||||
muxObjItem.Lock()
|
||||
cacheObjItem = make(map[string]ChatWarsItem)
|
||||
@ -1050,7 +1049,7 @@ func loadObjItem() error {
|
||||
muxObjItem.Lock()
|
||||
cacheObjItem[intl_id] = c
|
||||
for _, n := range c.Names {
|
||||
cacheObjItem[name] = c
|
||||
cacheObjItem[n] = c
|
||||
}
|
||||
muxObjItem.Unlock()
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user