Browse Source

update

tmp
DengBiao 7 months ago
parent
commit
90ec64e68d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/customer/svc/svc_pay.go

+ 1
- 1
app/customer/svc/svc_pay.go View File

@@ -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) sysCfg := sysCfgDb.SysCfgFindWithDb(enum2.WxAppletAppId, enum2.WxSpAppId, enum2.WxSpMchId, enum2.WxAppletAppId, enum2.WxJsapiPayNotifyUrl)
fmt.Println(int64(math.Round(totalPrice * 100))) fmt.Println(int64(math.Round(totalPrice * 100)))


openId := c.GetHeader("open_id") //TODO::实时获取用户的openId
openId := c.GetHeader("openid") //TODO::实时获取用户的openId
if openId == "" { if openId == "" {
openId = user.OpenId openId = user.OpenId
} }


Loading…
Cancel
Save