diff --git a/app/third/paymentService/psbc/refund.go b/app/third/paymentService/psbc/refund.go index f8589bd..14cbfdf 100644 --- a/app/third/paymentService/psbc/refund.go +++ b/app/third/paymentService/psbc/refund.go @@ -69,9 +69,5 @@ func (c *Client) Refund(req RefundRequest) (*RefundResponse, error) { return nil, fmt.Errorf("解析响应失败: %v,响应内容: %s", err, responseData) } - if result.RespCode != "" && result.RespCode != "0000" && result.RespCode != "00" { - return nil, fmt.Errorf("退款申请失败,错误码: %s,错误信息: %s", result.RespCode, result.RespMsg) - } - return &result, nil } diff --git a/app/third/paymentService/psbc_service.go b/app/third/paymentService/psbc_service.go index 43917f5..ca711fa 100644 --- a/app/third/paymentService/psbc_service.go +++ b/app/third/paymentService/psbc_service.go @@ -159,7 +159,7 @@ func PsbcRefundOrder(ctx context.Context, orderRefundRequest OrderRefundRequest) switch resp.RefundOrderSta { case "03": refundStatus = payCommon.PAY_REFUND_STATU_SUCCESS - case "04": + default: refundStatus = payCommon.PAY_REFUND_STATU_FAIL }