diff --git a/rpc/user_center_func.go b/rpc/user_center_func.go index a5db00ad533e362cf8195ad5591cd93b86aadc1d..53bb2b9d22f363ed7eca07993f2f14198ee13730 100644 --- a/rpc/user_center_func.go +++ b/rpc/user_center_func.go @@ -4,6 +4,7 @@ import ( "encoding/json" "git.hilo.cn/hilo-common/mylogrus" "git.hilo.cn/hilo-common/protocol/userProxy" + "git.hilo.cn/hilo-common/utils" "google.golang.org/protobuf/proto" ) @@ -302,6 +303,7 @@ func SendSheepGameResult(matchId, winId, userId1, userId2 uint64, nick1, nick2, // cp邀请 func SendCpInviteNotice(userId uint64, code, name, avatar, content string) error { + defer utils.CheckGoPanic() msg := &userProxy.CpInvite{UserCode: code, Name: name, Avatar: avatar, Msg: content} if buffer, err := proto.Marshal(msg); err == nil { userIds := []uint64{userId}