From 90ec64e68d9fd3d2546fe006f2192ad21002d772 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 1 Apr 2024 14:04:45 +0800 Subject: [PATCH] update --- app/customer/svc/svc_pay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/customer/svc/svc_pay.go b/app/customer/svc/svc_pay.go index 8ecf1bc..e3be7df 100644 --- a/app/customer/svc/svc_pay.go +++ b/app/customer/svc/svc_pay.go @@ -216,7 +216,7 @@ func BuyPackageForWx(c *gin.Context, req md.BuyPackageReq) (outTradeNo, total st sysCfg := sysCfgDb.SysCfgFindWithDb(enum2.WxAppletAppId, enum2.WxSpAppId, enum2.WxSpMchId, enum2.WxAppletAppId, enum2.WxJsapiPayNotifyUrl) fmt.Println(int64(math.Round(totalPrice * 100))) - openId := c.GetHeader("open_id") //TODO::实时获取用户的openId + openId := c.GetHeader("openid") //TODO::实时获取用户的openId if openId == "" { openId = user.OpenId }