This commit is contained in:
shoopea 2019-06-02 21:28:28 +08:00
parent d568ab7078
commit f23eeec590

2
obj.go
View File

@ -491,7 +491,7 @@ func addObjItem(code string, name string, itemTypeID64 int64, weight int) (int64
} }
func getObjItemID(c string, n string) int64 { func getObjItemID(c string, n string) int64 {
if v, ok := cacheObjItem.Load(s); ok { if v, ok := cacheObjItem.Load(c); ok {
i := v.(ChatWarsItem) i := v.(ChatWarsItem)
return i.ObjID64 return i.ObjID64
} else { } else {