Browse Source

update

add_mode
DengBiao 1 year ago
parent
commit
49e832fc4d
3 changed files with 5 additions and 0 deletions
  1. +1
    -0
      app/customer/md/md_curl_smart_pay.go
  2. +1
    -0
      app/customer/svc/svc_pay.go
  3. +3
    -0
      app/enum/enum_sys_cfg.go

+ 1
- 0
app/customer/md/md_curl_smart_pay.go View File

@@ -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 {


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

@@ -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


+ 3
- 0
app/enum/enum_sys_cfg.go View File

@@ -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 "未知"
}


Loading…
Cancel
Save