|
|
@@ -1306,9 +1306,9 @@ func SelfSupportForSchoolOrdRefund(req md.SelfSupportForSchoolOrdRefundReq) (err |
|
|
|
return err |
|
|
|
} |
|
|
|
|
|
|
|
sysCfgDb := db.SysCfgDb{} |
|
|
|
sysCfgDb.Set() |
|
|
|
sysCfg := sysCfgDb.SysCfgFindWithDb(enum2.OpenAlipayAppid, enum2.OpenAlipayAppPrivateKey, enum2.OpenAlipayPublicKey) |
|
|
|
//sysCfgDb := db.SysCfgDb{} |
|
|
|
//sysCfgDb.Set() |
|
|
|
//sysCfg := sysCfgDb.SysCfgFindWithDb(enum2.OpenAlipayAppid, enum2.OpenAlipayAppPrivateKey, enum2.OpenAlipayPublicKey) |
|
|
|
|
|
|
|
companyWithAlipayAppAuthTokenDb := db.CompanyWithAlipayAppAuthTokenDb{} |
|
|
|
companyWithAlipayAppAuthTokenDb.Set() |
|
|
@@ -1333,20 +1333,11 @@ func SelfSupportForSchoolOrdRefund(req md.SelfSupportForSchoolOrdRefundReq) (err |
|
|
|
|
|
|
|
//2、支付宝进行退款 |
|
|
|
err1, _ = svc2.CurlAlipayTradeRefund(md2.CurlAlipayTradeRefundReq{ |
|
|
|
Config: struct { |
|
|
|
PayAliAppId string `json:"pay_ali_app_id" label:"支付宝开放平台-第三方应用-appid"` |
|
|
|
PayAliPrivateKey string `json:"pay_ali_private_key" label:"支付宝开放平台-第三方应用-接口加签-应用私钥"` |
|
|
|
PayAliPublicKey string `json:"pay_ali_public_key" label:"支付宝开放平台-第三方应用-接口加签-支付宝公钥"` |
|
|
|
}{ |
|
|
|
PayAliAppId: sysCfg[enum2.OpenAlipayAppid], |
|
|
|
PayAliPrivateKey: sysCfg[enum2.OpenAlipayAppPrivateKey], |
|
|
|
PayAliPublicKey: sysCfg[enum2.OpenAlipayPublicKey], |
|
|
|
}, |
|
|
|
OutTradeNo: v.OutOrderNo, |
|
|
|
RefundAmount: v.TradeAmount, |
|
|
|
RefundReason: "刷脸就餐-退款", |
|
|
|
OutRequestNo: utils.OrderUUID(v.Uid), |
|
|
|
AppAuthToken: companyWithAlipayAppAuthToken.AppAuthToken, |
|
|
|
OutOrderNo: v.OutOrderNo, |
|
|
|
RefundAmount: v.TradeAmount, |
|
|
|
RefundReason: "刷脸就餐-退款", |
|
|
|
RefundOutOrderNo: utils.OrderUUID(v.Uid), |
|
|
|
MerchantCode: v.CpMerchantId, |
|
|
|
}) |
|
|
|
if err1 != nil { |
|
|
|
return err1 |
|
|
|