This commit is contained in:
shoopea 2019-05-31 11:28:16 +08:00
parent 0ac4dda50d
commit a04debbc83

2
obj.go
View File

@ -341,7 +341,7 @@ func addObjUser(name string) (int64, error) {
func getObjUserID(s string) int64 { func getObjUserID(s string) int64 {
if v, ok := cacheObjUser.Load(s); ok { if v, ok := cacheObjUser.Load(s); ok {
u := v.(ChatWarsUser) u := v.(ChatWarsUser)
return n.ObjID64 return u.ObjID64
} else { } else {
objID64, err := addObjUser(s) objID64, err := addObjUser(s)
logOnError(err, "getObjUserID") logOnError(err, "getObjUserID")