diff --git a/app/customer/md/md_curl_smart_pay.go b/app/customer/md/md_curl_smart_pay.go index f18f4c8..0619b2c 100644 --- a/app/customer/md/md_curl_smart_pay.go +++ b/app/customer/md/md_curl_smart_pay.go @@ -26,6 +26,7 @@ type CurlAlipayTradeCreateReq struct { OutTradeNo string `json:"out_trade_no" binding:"required" label:"商户订单号"` Subject string `json:"subject" binding:"required" label:"订单标题"` AppAuthToken string `json:"app_auth_token" binding:"required" label:"应用授权token"` + NotifyUrl string `json:"notify_url" label:"异步通知地址"` } type CurlAlipayTradeCreateResp struct { diff --git a/app/customer/svc/svc_pay.go b/app/customer/svc/svc_pay.go index 99f90e0..800c448 100644 --- a/app/customer/svc/svc_pay.go +++ b/app/customer/svc/svc_pay.go @@ -89,6 +89,7 @@ func BuyPackage(c *gin.Context, req md.BuyPackageReq) (outTradeNo, tradeNo, tota OutTradeNo: outTradeNo, Subject: "购买食堂套餐", AppAuthToken: sysCfg[enum2.JsapiPayAppAutToken], + NotifyUrl: sysCfg[enum2.JsapiPayNotifyUrl], }) if err != nil { return diff --git a/app/enum/enum_sys_cfg.go b/app/enum/enum_sys_cfg.go index 961bc43..2e76379 100644 --- a/app/enum/enum_sys_cfg.go +++ b/app/enum/enum_sys_cfg.go @@ -30,6 +30,7 @@ const ( NursingHomeReserveMealTime = "nursing_home_reserve_meal_time" NursingHomeCancelMealTime = "nursing_home_cancel_meal_time" JsapiPayAppAutToken = "jsapi_pay_app_auth_token" + JsapiPayNotifyUrl = "jsapi_pay_notify_url" ) func (gt SysCfg) String() string { @@ -84,6 +85,8 @@ func (gt SysCfg) String() string { return "养老院取消用餐时间" case JsapiPayAppAutToken: return "支付宝开放平台-jsapi支付-app_auth_token" + case JsapiPayNotifyUrl: + return "支付宝开放平台-jsapi支付-异步通知" default: return "未知" }