diff --git a/api/proto/vas/proto/vas.go b/api/proto/vas/proto/vas.go index c9622cd5..c7e66945 100644 --- a/api/proto/vas/proto/vas.go +++ b/api/proto/vas/proto/vas.go @@ -266,6 +266,7 @@ type ZoneRefundInfoResp struct { } type ZoneRefundInfoVo struct { + NikeName string `json:"nike_name"` RefundInfo *dbstruct.RefundInfo } diff --git a/app/mix/service/logic/vas_zone.go b/app/mix/service/logic/vas_zone.go index b3c4f4e0..a648e384 100644 --- a/app/mix/service/logic/vas_zone.go +++ b/app/mix/service/logic/vas_zone.go @@ -1057,7 +1057,7 @@ func (v *Vas) ZoneRefundV2(ctx *gin.Context, req *vasproto.ZoneRefundReq) error } else if timeInterval > 2*3600 && timeInterval <= 24*3600 { // refundsStatus = dbstruct.Refunds_Awaiting - // 发送主播审核消息 + // TODO:wxy, 发送主播审核消息 } else { refundsStatus = dbstruct.RefundsProhibit diff --git a/app/mix/service/vasservice.go b/app/mix/service/vasservice.go index 7a413a4f..b0e711b3 100644 --- a/app/mix/service/vasservice.go +++ b/app/mix/service/vasservice.go @@ -1020,11 +1020,19 @@ func (s *Service) ZoneRefundInfo(ctx *gin.Context, req *vasproto.ZoneRefundInfoR logger.Error("ZoneRefundInfo fail, err: %v", err) return } + if refundInfo == nil { + logger.Error("ZoneRefundInfo fail, User refund information does not exist, err: %v", err) + return + } - if refundInfo != nil { - info = &vasproto.ZoneRefundInfoVo{ - RefundInfo: refundInfo, - } + mids := make([]int64, 0) + mids = append(mids, refundInfo.Mid) + // 获取用户信息 + acntMap, _ := _DefaultAccount.GetAccountMapByMids(ctx, mids) + + info = &vasproto.ZoneRefundInfoVo{ + NikeName: acntMap[refundInfo.Mid].GetName(), + RefundInfo: refundInfo, } return