Merge remote-tracking branch 'origin/feature-refund_v2-wxy-20241204' into test

This commit is contained in:
wangxinyu 2024-12-25 12:14:12 +08:00
commit 6cd2f0801f
1 changed files with 18 additions and 1 deletions

View File

@ -1354,8 +1354,25 @@ func (v *Vas) ZoneRefundAudit(ctx *gin.Context, req *vasproto.ZoneRefundAuditReq
err = v.store.SetZoneRefundAuditInfo(ctx, req.AuditId, req.RefundsStatus)
if err != nil {
logger.Error("ZoneRefundAudit SetZoneRefundAuditInfo fail, mid: %v, zid: %v, orderId: %v, err: %v", info.Mid, info.Zid, info.OrderId, err)
return err
}
// 退款
err = v.RefundOrder(ctx, &vasproto.RefundOrderReq{
OrderId: info.OrderId,
Operator: fmt.Sprintf("%d", info.Mid),
}, vasproto.NewRefundOrderOpt().SetZoneRefundReq(&vasproto.ZoneRefundReq{
Zid: info.Zid,
ContactName: info.ContactName,
ContactPhone: info.ContactPhone,
Note: info.Note,
}))
if err != nil {
logger.Error("ZoneRefundAudit RefundOrder fail, mid: %v, zid: %v, orderId: %v, err: %v", info.Mid, info.Zid, info.OrderId, err)
return err
}
return nil
}
@ -1396,7 +1413,7 @@ func (v *Vas) UserRefundAuditTimes(ctx *gin.Context) error {
continue
}
}
logger.Info("UserRefundAuditTimes Refund order streamer review timeout, list: %v, ", util.ToJson(list))
return nil
}