记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
董敬伟
liquidnet-bus-v1
Commits
48055450
Commit
48055450
authored
Nov 19, 2021
by
zhengfuxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改退款的东西。
parent
1626482d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
3 deletions
+11
-3
IDragonOrderRefundsService.java
...et/service/dragon/service/IDragonOrderRefundsService.java
+2
-0
RefundController.java
...liquidnet/service/dragon/controller/RefundController.java
+6
-0
DragonOrderRefundsServiceImpl.java
...ce/dragon/service/impl/DragonOrderRefundsServiceImpl.java
+3
-3
No files found.
liquidnet-bus-api/liquidnet-service-dragon-api/src/main/java/com/liquidnet/service/dragon/service/IDragonOrderRefundsService.java
View file @
48055450
...
@@ -22,6 +22,8 @@ public interface IDragonOrderRefundsService {
...
@@ -22,6 +22,8 @@ public interface IDragonOrderRefundsService {
String
wePayRefundCallBack
(
HttpServletRequest
request
,
HttpServletResponse
response
);
String
wePayRefundCallBack
(
HttpServletRequest
request
,
HttpServletResponse
response
);
String
unionRefundCallBack
(
HttpServletRequest
request
,
HttpServletResponse
response
);
String
aliPayRefundCodeStatus
(
String
outTradeNo
,
String
tradeNo
,
String
outBizNo
,
String
callBackUrl
);
String
aliPayRefundCodeStatus
(
String
outTradeNo
,
String
tradeNo
,
String
outBizNo
,
String
callBackUrl
);
}
}
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/controller/RefundController.java
View file @
48055450
...
@@ -45,6 +45,12 @@ public class RefundController {
...
@@ -45,6 +45,12 @@ public class RefundController {
HttpServletResponse
response
)
{
HttpServletResponse
response
)
{
return
orderRefundsService
.
wePayRefundCallBack
(
request
,
response
);
return
orderRefundsService
.
wePayRefundCallBack
(
request
,
response
);
}
}
@PostMapping
(
"callBack/union"
)
@ApiOperation
(
"银联退款回调"
)
@ApiResponse
(
code
=
200
,
message
=
"接口返回对象参数"
)
public
String
refundUnion
(
HttpServletRequest
request
,
HttpServletResponse
response
)
{
return
orderRefundsService
.
unionRefundCallBack
(
request
,
response
);
}
@PostMapping
(
"refund/alipay/result"
)
@PostMapping
(
"refund/alipay/result"
)
@ApiOperation
(
"支付宝查询退款结果"
)
@ApiOperation
(
"支付宝查询退款结果"
)
...
...
liquidnet-bus-service/liquidnet-service-dragon/liquidnet-service-dragon-impl/src/main/java/com/liquidnet/service/dragon/service/impl/DragonOrderRefundsServiceImpl.java
View file @
48055450
...
@@ -85,6 +85,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -85,6 +85,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
dataUtils
.
setRefundNotifyUrl
(
orderRefundCode
,
notifyUrl
);
dataUtils
.
setRefundNotifyUrl
(
orderRefundCode
,
notifyUrl
);
DragonRefundChannelDto
dto
=
null
;
DragonRefundChannelDto
dto
=
null
;
String
localWePayCallBackUrl
=
url
+
"/refund/callBack/wepay"
;
String
localWePayCallBackUrl
=
url
+
"/refund/callBack/wepay"
;
String
localUnionPayCallBackUrl
=
url
+
"/refund/callBack/union"
;
if
(
insertResult
)
{
if
(
insertResult
)
{
switch
(
paymentType
)
{
switch
(
paymentType
)
{
case
DragonConstant
.
REFUND_TYPE_APP_ALIPAY
:
case
DragonConstant
.
REFUND_TYPE_APP_ALIPAY
:
...
@@ -112,7 +113,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -112,7 +113,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
dto
=
weyPayRefund
(
code
,
orderRefundCode
,
code
,
reason
,
price
,
priceTotal
,
paymentId
,
paymentType
,
localWePayCallBackUrl
,
nowTime
);
dto
=
weyPayRefund
(
code
,
orderRefundCode
,
code
,
reason
,
price
,
priceTotal
,
paymentId
,
paymentType
,
localWePayCallBackUrl
,
nowTime
);
break
;
break
;
case
DragonConstant
.
REFUND_TYPE_WAP_UNION
:
case
DragonConstant
.
REFUND_TYPE_WAP_UNION
:
dto
=
UnionWapPayRefund
(
code
,
orderRefundCode
,
code
,
reason
,
price
,
priceTotal
,
paymentId
,
paymentType
,
local
We
PayCallBackUrl
,
nowTime
);
dto
=
UnionWapPayRefund
(
code
,
orderRefundCode
,
code
,
reason
,
price
,
priceTotal
,
paymentId
,
paymentType
,
local
Union
PayCallBackUrl
,
nowTime
);
break
;
break
;
}
}
...
@@ -183,8 +184,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
...
@@ -183,8 +184,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
// data.put("reqReserved", Base64.encodeBase64String("任意格式的信息都可以".toString().getBytes(UnionpayConstant.encoding)));
// data.put("reqReserved", Base64.encodeBase64String("任意格式的信息都可以".toString().getBytes(UnionpayConstant.encoding)));
/**请求参数设置完毕,以下对请求参数进行签名并发送http post请求,接收同步应答报文------------->**/
/**请求参数设置完毕,以下对请求参数进行签名并发送http post请求,接收同步应答报文------------->**/
Map
<
String
,
String
>
reqData
=
acpService
.
sign
(
data
,
UnionpayConstant
.
encoding
);
//报文中certId,signature的值是在signData方法中获取并自动赋值的,只要证书配置正确即可。
Map
<
String
,
String
>
reqData
=
acpService
.
sign
(
data
,
UnionpayConstant
.
encoding
);
//报文中certId,signature的值是在signData方法中获取并自动赋值的,只要证书配置正确即可。
String
url
=
sdkConfig
.
getRefundUrl
();
//交易请求url从配置文件读取对应属性文件acp_sdk.properties中的 acpsdk.refundUrl
Map
<
String
,
String
>
rspData
=
acpService
.
post
(
reqData
,
notifyUrl
,
UnionpayConstant
.
encoding
);
//这里调用signData之后,调用submitUrl之前不能对submitFromData中的键值对做任何修改,如果修改会导致验签不通过
Map
<
String
,
String
>
rspData
=
acpService
.
post
(
reqData
,
url
,
UnionpayConstant
.
encoding
);
//这里调用signData之后,调用submitUrl之前不能对submitFromData中的键值对做任何修改,如果修改会导致验签不通过
String
refundError
=
""
;
String
refundError
=
""
;
/**对应答码的处理,请根据您的业务逻辑来编写程序,以下应答码处理逻辑仅供参考------------->**/
/**对应答码的处理,请根据您的业务逻辑来编写程序,以下应答码处理逻辑仅供参考------------->**/
//应答码规范参考open.unionpay.com帮助中心 下载 产品接口规范 《平台接入接口规范-第5部分-附录》
//应答码规范参考open.unionpay.com帮助中心 下载 产品接口规范 《平台接入接口规范-第5部分-附录》
...
...
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