This commit is contained in:
wucongxing8150 2024-08-14 13:13:29 +08:00
parent 04d165a708
commit 37d2b55dfb

View File

@ -6,6 +6,7 @@ import (
"github.com/wechatpay-apiv3/wechatpay-go/core"
"github.com/wechatpay-apiv3/wechatpay-go/services/payments/app"
"github.com/wechatpay-apiv3/wechatpay-go/services/payments/jsapi"
"hepa-calc-api/utils"
)
/**
@ -77,6 +78,7 @@ func (r JsapiRequest) GetJsapiPrepay() (prepay *jsapi.PrepayWithRequestPaymentRe
},
)
utils.LogJsonInfo("发起支付", *result)
if result.Response.StatusCode != 200 {
return nil, errors.New("发起支付失败")
}