This commit is contained in:
shoopea 2019-06-02 21:31:13 +08:00
parent e91ba0e6e6
commit 4c871267ab

2
obj.go
View File

@ -493,7 +493,7 @@ func addObjItem(code string, name string, itemTypeID64 int64, weight int) (int64
c.Code = code
c.Name = name
c.Weight = weight
cacheObjItem.Store(intl_id, *c)
cacheObjItem.Store(code, *c)
cacheObjItem.Store(name, *c)
return objId, nil