|
|
@@ -258,10 +258,11 @@ func (g *Group) RecallSendMessage(ctx context.Context, sender *pb.Sender, req *p |
|
|
|
|
|
|
|
// SendRedPackage 发送红包消息发送至群组 |
|
|
|
func (g *Group) SendRedPackage(ctx context.Context, sender *pb.Sender, req *pb.SendRedPacketReq) (int64, error) { |
|
|
|
if sender.SenderType == pb.SenderType_ST_USER && !g.IsMember(sender.SenderId) { |
|
|
|
logger.Sugar.Error(ctx, sender.SenderId, req.ReceiverId, "不在群组内") |
|
|
|
return 0, gerrors.ErrNotInGroup |
|
|
|
} |
|
|
|
//TODO::发送红包,暂不过滤群组用户 |
|
|
|
//if sender.SenderType == pb.SenderType_ST_USER && !g.IsMember(sender.SenderId) { |
|
|
|
// logger.Sugar.Error(ctx, sender.SenderId, req.ReceiverId, "不在群组内") |
|
|
|
// return 0, gerrors.ErrNotInGroup |
|
|
|
//} |
|
|
|
|
|
|
|
// 如果发送者是用户,将消息发送给发送者,获取用户seq |
|
|
|
var userSeq int64 |
|
|
|