This commit is contained in:
邹宗楠
2025-07-09 15:38:19 +08:00
parent 0f6cf49c48
commit 69a65dab98
12 changed files with 104 additions and 82 deletions

View File

@@ -15,7 +15,7 @@ func (a *API) AggregatePay(param *AggregatePayReq) (*AggregatePayResp, error) {
"version": Version3,
"req_time": utils.Time2TimeStrByFormat(time.Now(), TimeFormat),
}
result, err := a.AccessAPISign(PayTestUrl, PayActive, http.MethodPost, "", reqParameter)
result, err := a.AccessAPISign(PayProdUrl, PayActive, http.MethodPost, "", reqParameter)
if err != nil {
return nil, err
}
@@ -44,7 +44,7 @@ func (a *API) AggregateRefund(param *AggregateRefundReq) (*AggregateRefundResp,
"version": Version3,
"req_time": utils.Time2TimeStrByFormat(time.Now(), TimeFormat),
}
result, err := a.AccessAPISign(PayTestUrl, RefundActive, http.MethodPost, "", reqParameter)
result, err := a.AccessAPISign(PayProdUrl, RefundActive, http.MethodPost, "", reqParameter)
if err != nil {
return nil, err
}
@@ -74,7 +74,7 @@ func (a *API) PayStatusQuery(param *PayStatusQueryReq) (*PayStatusQueryResp, err
"version": Version3,
"req_time": utils.Time2TimeStrByFormat(time.Now(), TimeFormat),
}
result, err := a.AccessAPISign(PayTestUrl, PayQueryActive, http.MethodPost, "", reqParameter)
result, err := a.AccessAPISign(PayProdUrl, PayQueryActive, http.MethodPost, "", reqParameter)
if err != nil {
return nil, err
}
@@ -103,7 +103,7 @@ func (a *API) ScannerPayMicroPay(param *PayMicroPayReq) (string, string, string,
"version": Version3,
"req_time": utils.Time2TimeStrByFormat(time.Now(), TimeFormat),
}
result, err := a.AccessAPISign(PayTestUrl, PayMicropayActive, http.MethodPost, "", reqParameter)
result, err := a.AccessAPISign(PayProdUrl, PayMicropayActive, http.MethodPost, "", reqParameter)
if err != nil {
return "", "", "", err
}