diff --git a/rpc/user_center_func.go b/rpc/user_center_func.go index 4faa766bb6f6187f857ae7b806a6ed0c6f8356b8..8325600e887d349890081e2a0c293ec48436f697 100644 --- a/rpc/user_center_func.go +++ b/rpc/user_center_func.go @@ -305,7 +305,9 @@ func SendSheepGameResult(matchId, winId, userId1, userId2 uint64, nick1, nick2, func SendCpInviteNotice(userId uint64, code, name, avatar, content string) error { defer utils.CheckGoPanic() msg := &userProxy.CpInvite{ - User: &userProxy.User{}, Msg: content} + User: &userProxy.User{Id: userId, Code: code, Nick: name, Avatar: avatar}, + Msg: content, + } if buffer, err := proto.Marshal(msg); err == nil { userIds := []uint64{userId} rspUids, err := multicast(userIds, MsgTypeCpInvite, buffer)