Commit 7016cc43 authored by chenweijian's avatar chenweijian

cp

parent e13c9c87
...@@ -16,6 +16,7 @@ message User { ...@@ -16,6 +16,7 @@ message User {
bool isVip = 8; bool isVip = 8;
bool isLike = 9; bool isLike = 9;
bool isLikeMe = 10; bool isLikeMe = 10;
string code = 11;
} }
/* Svip*/ /* Svip*/
...@@ -373,7 +374,7 @@ message SheepMatchSuccess { ...@@ -373,7 +374,7 @@ message SheepMatchSuccess {
User otherUser = 3; User otherUser = 3;
} }
message SheepGamePlayer { message SheepGamePlayer {
User user = 1; User user = 1;
bool is_win = 2; bool is_win = 2;
int32 rank = 3; int32 rank = 3;
......
...@@ -304,7 +304,8 @@ func SendSheepGameResult(matchId, winId, userId1, userId2 uint64, nick1, nick2, ...@@ -304,7 +304,8 @@ func SendSheepGameResult(matchId, winId, userId1, userId2 uint64, nick1, nick2,
// cp邀请 // cp邀请
func SendCpInviteNotice(userId uint64, code, name, avatar, content string) error { func SendCpInviteNotice(userId uint64, code, name, avatar, content string) error {
defer utils.CheckGoPanic() defer utils.CheckGoPanic()
msg := &userProxy.CpInvite{UserCode: code, Name: name, Avatar: avatar, Msg: content} msg := &userProxy.CpInvite{
User: &userProxy.User{}, Msg: content}
if buffer, err := proto.Marshal(msg); err == nil { if buffer, err := proto.Marshal(msg); err == nil {
userIds := []uint64{userId} userIds := []uint64{userId}
rspUids, err := multicast(userIds, MsgTypeCpInvite, buffer) rspUids, err := multicast(userIds, MsgTypeCpInvite, buffer)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment