test
This commit is contained in:
parent
f23eeec590
commit
e91ba0e6e6
9
obj.go
9
obj.go
@ -487,6 +487,15 @@ func addObjItem(code string, name string, itemTypeID64 int64, weight int) (int64
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
||||
c := new(ChatWarsItem)
|
||||
c.ObjID64 = objId
|
||||
c.Code = code
|
||||
c.Name = name
|
||||
c.Weight = weight
|
||||
cacheObjItem.Store(intl_id, *c)
|
||||
cacheObjItem.Store(name, *c)
|
||||
|
||||
return objId, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user