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 {
c := string.ToLower(code)
n := string.ToUpper(name)
c := strings.ToLower(code)
n := strings.ToUpper(name)
if v, ok := cacheObjItem.Load(c); ok {
i := v.(ChatWarsItem)
return i.ObjID64