Merge branch 'develop' of git.ailuowan.com:zzw/lone-services into develop
CI / changes (push) Successful in 1m31s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 0s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 28s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 0s

This commit is contained in:
2026-10-07 14:45:45 +08:00
@@ -45,6 +45,7 @@ func (l *RefundLogic) Refund(in *payment.RefundReq) (*payment.Response, error) {
orderInfo, err := getOrderInfo(l.ctx, l.svcCtx.OrderSvcName, loginUser.ID, in.OrderSn, loginUser.Type)
if err != nil {
l.Errorf("get order info: %v", err)
return failResponse(utils.ErrorNotFund), nil
}
if orderPayStatus(orderInfo) != dao.PayStatusOk {
@@ -77,6 +78,7 @@ func (l *RefundLogic) Refund(in *payment.RefundReq) (*payment.Response, error) {
TotalFen: totalFen,
Currency: "CNY",
})
fmt.Println("outTradeNo", outTradeNo, "outRefundNo", outRefundNo)
if err != nil {
l.Errorf("refund: %v", err)
return outResponse(utils.Fail, err.Error()), nil