This commit is contained in:
shoopea 2019-06-06 15:55:00 +08:00
parent af3ef63e49
commit 0a943fe247

4
obj.go
View File

@ -515,8 +515,8 @@ func getObjItemID(c string, n string) int64 {
} }
func silentGetObjItemID(code string, name string) int64 { func silentGetObjItemID(code string, name string) int64 {
c := string.ToLower(code) c := strings.ToLower(code)
n := string.ToUpper(name) n := strings.ToUpper(name)
if v, ok := cacheObjItem.Load(c); ok { if v, ok := cacheObjItem.Load(c); ok {
i := v.(ChatWarsItem) i := v.(ChatWarsItem)
return i.ObjID64 return i.ObjID64