This commit is contained in:
shoopea 2019-06-09 20:19:16 +08:00
parent da025e4012
commit 787a6f04b6

2
obj.go
View File

@ -116,7 +116,7 @@ func addObjMsg(msgID64 int64, msgChatID64 int64, msgUserID64 int64, msgSenderUse
func getObjMsg(objId int64) (*ChatWarsMessage, error) {
if v, ok := cacheObjMsg.Load(objId); ok {
m := v.(ChatWarsMessage)
return *m, nil
return &m, nil
}
var m *ChatWarsMessage