Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kaoshi-java
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
单欣鑫
kaoshi-java
Commits
a73f5574
Commit
a73f5574
authored
Jun 24, 2025
by
Wzp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
H5支付
parent
a0aa1b11
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
211 additions
and
42 deletions
+211
-42
AlipayService.java
...c/main/java/com/ruoyi/hezhi/api/entity/AlipayService.java
+59
-13
ApiPayController.java
...ain/java/com/ruoyi/hezhi/api/kaoshi/ApiPayController.java
+141
-27
application.yml
ruoyi-admin/src/main/resources/application.yml
+3
-1
pom.xml
ruoyi-common/pom.xml
+1
-1
WeiXinPayConfig.java
.../java/com/ruoyi/common/weixin/config/WeiXinPayConfig.java
+7
-0
No files found.
ruoyi-admin/src/main/java/com/ruoyi/hezhi/api/entity/AlipayService.java
View file @
a73f5574
...
...
@@ -6,10 +6,13 @@ import com.alipay.api.AlipayConfig;
import
com.alipay.api.DefaultAlipayClient
;
import
com.alipay.api.domain.AlipayTradePagePayModel
;
import
com.alipay.api.domain.AlipayTradeRefundModel
;
import
com.alipay.api.domain.AlipayTradeWapPayModel
;
import
com.alipay.api.request.AlipayTradePagePayRequest
;
import
com.alipay.api.request.AlipayTradeRefundRequest
;
import
com.alipay.api.request.AlipayTradeWapPayRequest
;
import
com.alipay.api.response.AlipayTradePagePayResponse
;
import
com.alipay.api.response.AlipayTradeRefundResponse
;
import
com.alipay.api.response.AlipayTradeWapPayResponse
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.hezhi.domain.TbMemberOrder
;
import
com.ruoyi.hezhi.service.ITbMemberOrderService
;
...
...
@@ -25,6 +28,7 @@ import java.util.Map;
/**
* 支付宝支付
*
* @author Wzp
*/
@Component
...
...
@@ -52,12 +56,13 @@ public class AlipayService {
/**
* 支付宝支付生成预付单
*
* @param realPay 支付金额
* @param paySn 支付单号
* @param description 描述
* @return 结果
*/
public
String
aliPaySubmit
(
BigDecimal
realPay
,
String
paySn
,
String
description
,
Long
examId
,
Long
memberUserId
)
{
public
String
aliPaySubmit
(
BigDecimal
realPay
,
String
paySn
,
String
description
,
Long
examId
,
Long
memberUserId
)
{
try
{
// 初始化SDK
AlipayClient
alipayClient
=
getAlipayClient
();
...
...
@@ -71,20 +76,59 @@ public class AlipayService {
model
.
setProductCode
(
"FAST_INSTANT_TRADE_PAY"
);
// 设置产品码
model
.
setQrPayMode
(
"1"
);
// 设置PC扫码支付的方式
model
.
setQrcodeWidth
(
100L
);
// 设置商户自定义二维码宽度
model
.
setRequestFromUrl
(
"https://www.chsie.com.cn/payTheFees?examId="
+
examId
+
"&memberUserId="
+
memberUserId
);
model
.
setRequestFromUrl
(
"https://www.chsie.com.cn/payTheFees?examId="
+
examId
+
"&memberUserId="
+
memberUserId
);
request
.
setBizModel
(
model
);
request
.
setNotifyUrl
(
aliPayConfig
.
getNotifyUrl
()
+
"/api/pay/aliPayBoilerNotify"
);
request
.
setNotifyUrl
(
aliPayConfig
.
getNotifyUrl
()
+
"/api/pay/aliPayBoilerNotify"
);
// request.setReturnUrl("https://www.chsie.com.cn/examDetail?examId="+examId);//支付成功后跳转回哪个页面
AlipayTradePagePayResponse
response
=
alipayClient
.
pageExecute
(
request
,
"POST"
);
// 如果需要返回GET请求,请使用
if
(
response
.
isSuccess
()){
if
(
response
.
isSuccess
())
{
return
response
.
getBody
();
}
else
{
}
else
{
throw
new
ServerCloneException
(
"支付宝支付失败"
);
}
}
catch
(
Exception
e
){
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
ServiceException
(
"支付宝支付异常"
);
}
}
/**
* 支付宝支付生成预付单-H5
*
* @param realPay 支付金额
* @param paySn 支付单号
* @param description 描述
* @return 结果
*/
public
String
aliPayH5Submit
(
BigDecimal
realPay
,
String
paySn
,
String
description
,
Long
examId
,
Long
memberUserId
)
{
try
{
// 初始化SDK
AlipayClient
alipayClient
=
getAlipayClient
();
// 构造请求参数以调用接口
AlipayTradeWapPayRequest
request
=
new
AlipayTradeWapPayRequest
();
AlipayTradeWapPayModel
model
=
new
AlipayTradeWapPayModel
();
model
.
setOutTradeNo
(
paySn
);
// 设置商户订单号
model
.
setTotalAmount
(
realPay
.
toString
());
// 设置订单总金额
model
.
setSubject
(
description
);
// 设置订单标题
model
.
setProductCode
(
"QUICK_WAP_WAY"
);
// 设置产品码
model
.
setQuitUrl
(
"https://h5.chsie.com.cn/#/subPages/examDetailsIndex/examDetailsIndex?examNoticeId="
+
examId
);
request
.
setBizModel
(
model
);
request
.
setNotifyUrl
(
aliPayConfig
.
getNotifyUrl
()
+
"/api/pay/aliPayBoilerNotify"
);
request
.
setReturnUrl
(
"https://h5.chsie.com.cn/#/subPages/examDetailsIndex/examDetailsIndex?examNoticeId="
+
examId
);
AlipayTradeWapPayResponse
response
=
alipayClient
.
pageExecute
(
request
,
"POST"
);
// 如果需要返回GET请求,请使用
if
(
response
.
isSuccess
())
{
return
response
.
getBody
();
}
else
{
throw
new
ServerCloneException
(
"支付宝支付失败"
);
}
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
ServiceException
(
"支付宝支付异常"
);
}
...
...
@@ -92,6 +136,7 @@ public class AlipayService {
/**
* 支付宝退款
*
* @param orderSn 订单号
* @param payment 支付金额
* @return 结果
...
...
@@ -112,14 +157,14 @@ public class AlipayService {
request
.
setBizModel
(
refundModel
);
AlipayTradeRefundResponse
response
=
alipayClient
.
certificateExecute
(
request
);
if
(
response
.
isSuccess
()){
if
(
response
.
isSuccess
())
{
log
.
info
(
"支付宝退款调用成功"
+
response
);
return
"SUCCESS"
;
}
else
{
}
else
{
log
.
error
(
"支付宝退款调用失败"
+
response
);
return
"FAIL"
;
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
log
.
error
(
"支付宝退款错误!"
,
e
.
getMessage
());
return
"FAIL"
;
...
...
@@ -128,6 +173,7 @@ public class AlipayService {
/**
* 校验回调参数
*
* @param params 参数
* @return
*/
...
...
@@ -141,7 +187,7 @@ public class AlipayService {
}
// 验证商户app_id
String
appId
=
params
.
get
(
"app_id"
);
if
(!
appId
.
equals
(
aliPayConfig
.
getAppId
()))
{
if
(!
appId
.
equals
(
aliPayConfig
.
getAppId
()))
{
log
.
error
(
"app_id 错误"
);
return
"FAIL"
;
}
...
...
ruoyi-admin/src/main/java/com/ruoyi/hezhi/api/kaoshi/ApiPayController.java
View file @
a73f5574
...
...
@@ -7,6 +7,7 @@ import com.alipay.api.internal.util.AlipaySignature;
import
com.ruoyi.common.core.domain.AjaxResult
;
import
com.ruoyi.common.exception.ServiceException
;
import
com.ruoyi.common.utils.DateUtils
;
import
com.ruoyi.common.utils.ip.IpUtils
;
import
com.ruoyi.common.weixin.config.WeiXinPayConfig
;
import
com.ruoyi.common.weixin.utils.WeiXinPayV3Utils
;
import
com.ruoyi.hezhi.api.entity.AliPayConfig
;
...
...
@@ -45,7 +46,6 @@ public class ApiPayController {
@Resource
private
WeiXinPayV3Utils
weiXinPayV3Utils
;
@Resource
private
AliPayConfig
aliPayConfig
;
@Resource
...
...
@@ -67,7 +67,7 @@ public class ApiPayController {
return
AjaxResult
.
error
(
"参数错误"
);
}
ExamPayInfoDto
examPayInfoDto
=
memberOrderService
.
selectExamPayInfoByOrderNo
(
orderNo
);
if
(
examPayInfoDto
!=
null
&&
examPayInfoDto
.
getIsExpired
()==
1
)
{
if
(
examPayInfoDto
!=
null
&&
examPayInfoDto
.
getIsExpired
()
==
1
)
{
return
AjaxResult
.
error
(
"考试报名时间已过,请重新报名"
);
}
TbMemberOrder
order
=
memberOrderService
.
selectOrderByOrderNo
(
orderNo
);
...
...
@@ -78,11 +78,11 @@ public class ApiPayController {
BigDecimal
payPrice
=
order
.
getPayPrice
();
if
(
payPrice
.
compareTo
(
BigDecimal
.
ZERO
)
<
1
){
if
(
payPrice
.
compareTo
(
BigDecimal
.
ZERO
)
<
1
)
{
// 无需支付
result
.
put
(
"isNeedPay"
,
0
);
memberOrderService
.
orderPayNotify
(
order
.
getOrderNo
(),
2
);
}
else
{
}
else
{
// 需要支付
result
.
put
(
"isNeedPay"
,
1
);
log
.
info
(
"支付宝预下单,商户订单号:{}"
,
orderNo
);
...
...
@@ -91,7 +91,51 @@ public class ApiPayController {
if
(
ObjectUtil
.
isNull
(
tbExamRegistration
))
{
return
AjaxResult
.
error
(
"获取报名信息失败,下单失败"
);
}
String
payInfo
=
alipayService
.
aliPaySubmit
(
order
.
getPayPrice
(),
order
.
getOrderNo
(),
order
.
getOrderName
(),
tbExamRegistration
.
getExamId
(),
tbExamRegistration
.
getMemberUserId
());
String
payInfo
=
alipayService
.
aliPaySubmit
(
order
.
getPayPrice
(),
order
.
getOrderNo
(),
order
.
getOrderName
(),
tbExamRegistration
.
getExamId
(),
tbExamRegistration
.
getMemberUserId
());
result
.
put
(
"payInfo"
,
payInfo
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
return
AjaxResult
.
error
(
"下单失败"
);
}
}
return
AjaxResult
.
success
(
result
);
}
/**
* alipayH5支付
*/
@GetMapping
(
"/aliPayH5"
)
public
AjaxResult
aliPayH5
(
String
orderNo
)
{
//todo 检测考试报名时间是否过了(支付宝)【待测试】
if
(
StrUtil
.
isBlank
(
orderNo
))
{
return
AjaxResult
.
error
(
"参数错误"
);
}
ExamPayInfoDto
examPayInfoDto
=
memberOrderService
.
selectExamPayInfoByOrderNo
(
orderNo
);
if
(
examPayInfoDto
!=
null
&&
examPayInfoDto
.
getIsExpired
()
==
1
)
{
return
AjaxResult
.
error
(
"考试报名时间已过,请重新报名"
);
}
TbMemberOrder
order
=
memberOrderService
.
selectOrderByOrderNo
(
orderNo
);
if
(
ObjectUtils
.
isEmpty
(
order
))
{
return
AjaxResult
.
error
(
"参数错误"
);
}
JSONObject
result
=
new
JSONObject
();
BigDecimal
payPrice
=
order
.
getPayPrice
();
if
(
payPrice
.
compareTo
(
BigDecimal
.
ZERO
)
<
1
)
{
// 无需支付
result
.
put
(
"isNeedPay"
,
0
);
memberOrderService
.
orderPayNotify
(
order
.
getOrderNo
(),
2
);
}
else
{
// 需要支付
result
.
put
(
"isNeedPay"
,
1
);
log
.
info
(
"支付宝预下单,商户订单号:{}"
,
orderNo
);
try
{
TbExamRegistration
tbExamRegistration
=
examRegistrationService
.
selectTbExamRegistrationByExamRegistrationIdFahuo
(
order
.
getDataId
());
if
(
ObjectUtil
.
isNull
(
tbExamRegistration
))
{
return
AjaxResult
.
error
(
"获取报名信息失败,下单失败"
);
}
String
payInfo
=
alipayService
.
aliPayH5Submit
(
order
.
getPayPrice
(),
order
.
getOrderNo
(),
order
.
getOrderName
(),
tbExamRegistration
.
getExamId
(),
tbExamRegistration
.
getMemberUserId
());
result
.
put
(
"payInfo"
,
payInfo
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
...
...
@@ -113,7 +157,7 @@ public class ApiPayController {
throw
new
ServiceException
(
"参数错误"
);
}
ExamPayInfoDto
examPayInfoDto
=
memberOrderService
.
selectExamPayInfoByOrderNo
(
orderNo
);
if
(
examPayInfoDto
!=
null
&&
examPayInfoDto
.
getIsExpired
()==
1
)
{
if
(
examPayInfoDto
!=
null
&&
examPayInfoDto
.
getIsExpired
()
==
1
)
{
return
AjaxResult
.
error
(
"考试报名时间已过,请重新报名"
);
}
TbMemberOrder
order
=
memberOrderService
.
selectOrderByOrderNo
(
orderNo
);
...
...
@@ -123,13 +167,13 @@ public class ApiPayController {
BigDecimal
payPrice
=
order
.
getPayPrice
();
if
(
payPrice
.
compareTo
(
BigDecimal
.
ZERO
)
<
1
)
{
if
(
payPrice
.
compareTo
(
BigDecimal
.
ZERO
)
<
1
)
{
// 无需支付
JSONObject
data
=
new
JSONObject
();
data
.
put
(
"isNeedPay"
,
0
);
memberOrderService
.
orderPayNotify
(
orderNo
,
1
);
return
AjaxResult
.
success
(
data
);
}
else
{
}
else
{
JSONObject
amount
=
new
JSONObject
();
//单位为人民币(分)
amount
.
put
(
"total"
,
order
.
getPayPrice
().
multiply
(
new
BigDecimal
(
"100"
)).
intValue
());
...
...
@@ -161,8 +205,77 @@ public class ApiPayController {
}
}
/***
* 获取微信支付H5
* @param orderNo 订单号
* @return 结果
*/
@GetMapping
(
"/createH5PayParam"
)
public
AjaxResult
createH5PayParam
(
String
orderNo
)
{
//todo 检测考试报名时间是否过了(微信)【待测试】
if
(
StrUtil
.
isBlank
(
orderNo
))
{
throw
new
ServiceException
(
"参数错误"
);
}
ExamPayInfoDto
examPayInfoDto
=
memberOrderService
.
selectExamPayInfoByOrderNo
(
orderNo
);
if
(
examPayInfoDto
!=
null
&&
examPayInfoDto
.
getIsExpired
()
==
1
)
{
return
AjaxResult
.
error
(
"考试报名时间已过,请重新报名"
);
}
TbMemberOrder
order
=
memberOrderService
.
selectOrderByOrderNo
(
orderNo
);
if
(
ObjectUtils
.
isEmpty
(
order
))
{
throw
new
ServiceException
(
"订单错误"
);
}
BigDecimal
payPrice
=
order
.
getPayPrice
();
if
(
payPrice
.
compareTo
(
BigDecimal
.
ZERO
)
<
1
)
{
// 无需支付
JSONObject
data
=
new
JSONObject
();
data
.
put
(
"isNeedPay"
,
0
);
memberOrderService
.
orderPayNotify
(
orderNo
,
1
);
return
AjaxResult
.
success
(
data
);
}
else
{
//单位为人民币(分)
JSONObject
amount
=
new
JSONObject
();
amount
.
put
(
"total"
,
order
.
getPayPrice
().
multiply
(
new
BigDecimal
(
"100"
)).
intValue
());
amount
.
put
(
"currency"
,
"CNY"
);
// H5场景信息
JSONObject
h5_info
=
new
JSONObject
();
amount
.
put
(
"type"
,
"Wap"
);
// 场景类型,使用H5支付的场景:Wap、iOS、Android
// 场景信息
JSONObject
scene_info
=
new
JSONObject
();
amount
.
put
(
"payer_client_ip "
,
IpUtils
.
getIpAddr
());
amount
.
put
(
"h5_info "
,
h5_info
);
JSONObject
postData
=
new
JSONObject
();
postData
.
put
(
"appid"
,
weiXinPayConfig
.
getAppId
());
postData
.
put
(
"mchid"
,
weiXinPayConfig
.
getMchId
());
postData
.
put
(
"description"
,
order
.
getRemarks
());
postData
.
put
(
"out_trade_no"
,
orderNo
);
postData
.
put
(
"notify_url"
,
weiXinPayConfig
.
getH5NotifyUrl
());
postData
.
put
(
"amount"
,
amount
);
postData
.
put
(
"scene_info"
,
scene_info
);
log
.
info
(
"H5下单-参数 => {}"
,
postData
.
toJSONString
());
// 发送请求
JSONObject
result
=
weiXinPayV3Utils
.
sendPost
(
"https://api.mch.weixin.qq.com/v3/pay/transactions/h5"
,
postData
);
log
.
info
(
"H5下单-结果 => {}"
,
postData
.
toJSONString
());
if
(
result
.
containsKey
(
"h5_url"
))
{
// 支付二维码
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"h5_url"
,
result
.
getString
(
"h5_url"
));
map
.
put
(
"isNeedPay"
,
1
);
return
AjaxResult
.
success
(
map
);
}
else
{
log
.
error
(
"H5下单调起失败 <{}> 参数:{},结果:{}"
,
DateUtils
.
getTime
(),
postData
.
toJSONString
(),
result
.
toJSONString
());
throw
new
ServiceException
(
"H5下单调起失败"
);
}
}
}
/**
* 微信支付
二维码支付
回调
* 微信支付回调
*
* @param httpServletRequest 请求
* @param httpServletResponse 响应
...
...
@@ -216,54 +329,55 @@ public class ApiPayController {
/**
* 支付宝支付回调-学信考试支付
*
* @param httpServletRequest 请求
* @param httpServletResponse 响应
*/
@PostMapping
(
"/aliPayBoilerNotify"
)
@ResponseBody
public
String
aliPayBoilerNotify
(
HttpServletRequest
httpServletRequest
,
HttpServletResponse
httpServletResponse
){
public
String
aliPayBoilerNotify
(
HttpServletRequest
httpServletRequest
,
HttpServletResponse
httpServletResponse
)
{
try
{
//获取支付宝POST过来反馈信息
//获取支付宝POST过来反馈信息,将异步通知中收到的待验证所有参数都存放到map中
Map
<
String
,
String
>
params
=
new
HashMap
<
String
,
String
>();
Map
<
String
,
String
>
params
=
new
HashMap
<
String
,
String
>();
Map
requestParams
=
httpServletRequest
.
getParameterMap
();
for
(
Iterator
iter
=
requestParams
.
keySet
().
iterator
();
iter
.
hasNext
();)
{
String
name
=
(
String
)
iter
.
next
();
String
[]
values
=
(
String
[])
requestParams
.
get
(
name
);
for
(
Iterator
iter
=
requestParams
.
keySet
().
iterator
();
iter
.
hasNext
();
)
{
String
name
=
(
String
)
iter
.
next
();
String
[]
values
=
(
String
[])
requestParams
.
get
(
name
);
String
valueStr
=
""
;
for
(
int
i
=
0
;
i
<
values
.
length
;
i
++
)
{
valueStr
=
(
i
==
values
.
length
-
1
)?
valueStr
+
values
[
i
]:
valueStr
+
values
[
i
]
+
","
;
for
(
int
i
=
0
;
i
<
values
.
length
;
i
++)
{
valueStr
=
(
i
==
values
.
length
-
1
)
?
valueStr
+
values
[
i
]
:
valueStr
+
values
[
i
]
+
","
;
}
//乱码解决,这段代码在出现乱码时使用。
//valueStr = new String(valueStr.getBytes(StandardCharsets.ISO_8859_1), StandardCharsets.UTF_8);
params
.
put
(
name
,
valueStr
);
params
.
put
(
name
,
valueStr
);
}
log
.
error
(
"支付宝支付回调-学信考试支付 <{}> 订单参数 <{}> "
,
DateUtils
.
getTime
(),
params
);
boolean
flag
=
AlipaySignature
.
rsaCheckV1
(
params
,
aliPayConfig
.
getPublicKey
(),
"UTF-8"
,
"RSA2"
);
if
(
flag
){
boolean
flag
=
AlipaySignature
.
rsaCheckV1
(
params
,
aliPayConfig
.
getPublicKey
(),
"UTF-8"
,
"RSA2"
);
if
(
flag
)
{
// 对支付结果中的业务进行验证
String
s
=
alipayService
.
checkParams
(
params
);
if
(
s
.
equals
(
"success"
)){
if
(
s
.
equals
(
"success"
))
{
log
.
error
(
"支付宝支付回调-学信考试支付 <{}> 签名认证成功 <{}> "
,
DateUtils
.
getTime
(),
params
);
String
orderNo
=
params
.
get
(
"out_trade_no"
);
// 业务处理
String
msg
=
""
;
try
{
msg
=
memberOrderService
.
orderPayNotify
(
orderNo
,
2
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"支付宝支付回调-学信考试支付<{}> 订单号 <{}> 订单处理异常"
,
DateUtils
.
getTime
(),
orderNo
);
msg
=
"FAIL"
;
}
if
(
msg
.
equals
(
"SUCCESS"
))
{
if
(
msg
.
equals
(
"SUCCESS"
))
{
return
"success"
;
}
else
{
}
else
{
return
"fail"
;
}
}
else
{
}
else
{
log
.
error
(
"支付宝支付回调-学信考试支付 <{}> 签名认证失败 <{}> "
,
DateUtils
.
getTime
(),
params
);
return
"fail"
;
}
}
else
{
}
else
{
log
.
error
(
"支付宝支付回调-学信考试支付 <{}> 解密失败 <{}> "
,
DateUtils
.
getTime
(),
params
);
return
"fail"
;
}
...
...
@@ -290,7 +404,7 @@ public class ApiPayController {
}
@GetMapping
(
"/test"
)
public
AjaxResult
test
(){
public
AjaxResult
test
()
{
String
s
=
memberOrderService
.
orderPayNotify
(
"1870522601479000064"
,
1
);
return
AjaxResult
.
success
();
...
...
ruoyi-admin/src/main/resources/application.yml
View file @
a73f5574
...
...
@@ -231,6 +231,8 @@ wx:
apiV3Key
:
yFRJqhZQJ45wrwg2zJwokb40P7Yn2123
# 微信支付回调通知域名
notifyUrl
:
https://server.chsie.com.cn/api/pay/createNativePayParamNotify
# 微信支付回调通知域名
h5NotifyUrl
:
https://server.chsie.com.cn/api/pay/createH5PayParamNotify
# 支付宝支付回调通知域名
notifyZfbUrl
:
https://server.chsie.com.cn/api/pay/aliPayBoilerNotify
# 商品描述
...
...
ruoyi-common/pom.xml
View file @
a73f5574
...
...
@@ -178,7 +178,7 @@
<version>
23.4
</version>
<classifier>
jdk17
</classifier>
<scope>
system
</scope>
<systemPath>
C:/Users/71960/.m2/repository
/com/aspose/aspose-words/23.4/aspose-words-23.4-jdk17.jar
</systemPath>
<systemPath>
F:/Maven/maven-repo
/com/aspose/aspose-words/23.4/aspose-words-23.4-jdk17.jar
</systemPath>
</dependency>
<dependency>
...
...
ruoyi-common/src/main/java/com/ruoyi/common/weixin/config/WeiXinPayConfig.java
View file @
a73f5574
...
...
@@ -7,6 +7,7 @@ import org.springframework.context.annotation.Configuration;
/**
* 微信支付V3相关参数配置
*
* @author Wzp
*/
@Getter
...
...
@@ -25,9 +26,15 @@ public class WeiXinPayConfig {
@Value
(
"${wx.pay.apiV3Key}"
)
private
String
apiV3Key
;
//微信回调地址
@Value
(
"${wx.pay.notifyUrl}"
)
private
String
notifyUrl
;
//微信H5回调地址
@Value
(
"${wx.pay.h5NotifyUrl}"
)
private
String
h5NotifyUrl
;
//支付宝回调地址
@Value
(
"${wx.pay.notifyZfbUrl}"
)
private
String
notifyZfbUrl
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment