From 01c06b24aa1a48bbc20917de461894481b3f5f15 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 10 Oct 2023 12:31:05 +0800 Subject: [PATCH] update --- app/customer/svc/svc_pay.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/customer/svc/svc_pay.go b/app/customer/svc/svc_pay.go index 6da3b92..5923100 100644 --- a/app/customer/svc/svc_pay.go +++ b/app/customer/svc/svc_pay.go @@ -203,7 +203,7 @@ func BuyPackageForWx(c *gin.Context, req md.BuyPackageReq) (outTradeNo, total st return } wxSvc := jsapi.JsapiApiService{Client: client} - sysCfg := sysCfgDb.SysCfgFindWithDb(enum2.WxSpAppId, enum2.WxSpMchId, enum2.WxAppletAppId, enum2.WxMchId, enum2.WxJsapiPayNotifyUrl) + sysCfg := sysCfgDb.SysCfgFindWithDb(enum2.WxAppletAppId, enum2.WxSpAppId, enum2.WxSpMchId, enum2.WxAppletAppId, enum2.WxMchId, enum2.WxJsapiPayNotifyUrl) result, _, err := wxSvc.Prepay(c, jsapi.PrepayRequest{ @@ -263,7 +263,7 @@ func BuyPackageForWx(c *gin.Context, req md.BuyPackageReq) (outTradeNo, total st resp = new(jsapi2.PrepayWithRequestPaymentResponse) resp.PrepayId = result.PrepayId resp.SignType = core.String("RSA") - appid := sysCfg[enum2.WxSpAppId] + appid := sysCfg[enum2.WxAppletAppId] resp.Appid = &appid resp.TimeStamp = core.String(strconv.FormatInt(time.Now().Unix(), 10)) nonce, err := utils2.GenerateNonce()