This commit is contained in:
shoopea 2019-06-06 16:07:38 +08:00
parent 97acb922ce
commit a808aaf4eb

4
obj.go
View File

@ -493,10 +493,10 @@ func addObjItem(code string, name string, itemTypeID64 int64, weight int) (int64
c := new(ChatWarsItem) c := new(ChatWarsItem)
c.ObjID64 = objId c.ObjID64 = objId
c.Code = code c.Code = code
c.Name = strings.ToUpper(name) c.Name = name
c.Weight = weight c.Weight = weight
cacheObjItem.Store(code, *c) cacheObjItem.Store(code, *c)
cacheObjItem.Store(name, *c) cacheObjItem.Store(strings.ToUpper(name), *c)
return objId, nil return objId, nil
} }