fix: 退款详情页增加用户昵称
This commit is contained in:
parent
7ef275a85e
commit
17902f8c2d
|
@ -266,6 +266,7 @@ type ZoneRefundInfoResp struct {
|
|||
}
|
||||
|
||||
type ZoneRefundInfoVo struct {
|
||||
NikeName string `json:"nike_name"`
|
||||
RefundInfo *dbstruct.RefundInfo
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
info = &vasproto.ZoneRefundInfoVo{
|
||||
RefundInfo: refundInfo,
|
||||
if refundInfo == nil {
|
||||
logger.Error("ZoneRefundInfo fail, User refund information does not exist, err: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue