|
@@ -104,8 +104,8 @@ func GrabRedPackage(c *gin.Context) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
//TODO::调用im GRPC 接口 |
|
|
//TODO::调用im GRPC 接口 |
|
|
masterID := c.GetHeader("master_id") |
|
|
|
|
|
res, err := utils.GetLogicExtClient(cfg.ImLogicRpc.URL, cfg.ImLogicRpc.PORT).SendRedPacket(utils.GetCtx(req.Token, req.UserId, req.DeviceId, masterID), &pb.SendRedPacketReq{ |
|
|
|
|
|
|
|
|
// masterID := c.GetHeader("master_id") |
|
|
|
|
|
res, err := utils.GetLogicExtClient(cfg.ImLogicRpc.URL, cfg.ImLogicRpc.PORT).SendRedPacket(utils.GetCtx(req.Token, req.UserId, req.DeviceId), &pb.SendRedPacketReq{ |
|
|
ReceiverType: pb.ReceiverType(req.ReceiverType), |
|
|
ReceiverType: pb.ReceiverType(req.ReceiverType), |
|
|
ReceiverId: req.ReceiverId, |
|
|
ReceiverId: req.ReceiverId, |
|
|
MessageType: pb.MessageType_MT_RED_PACKAGE, |
|
|
MessageType: pb.MessageType_MT_RED_PACKAGE, |
|
|