diff --git a/app/customer/svc/svc_pay.go b/app/customer/svc/svc_pay.go index e654989..8ecf1bc 100644 --- a/app/customer/svc/svc_pay.go +++ b/app/customer/svc/svc_pay.go @@ -215,7 +215,8 @@ 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") + + openId := c.GetHeader("open_id") //TODO::实时获取用户的openId if openId == "" { openId = user.OpenId }