记得上下班打卡 | 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
a35c62ab
Commit
a35c62ab
authored
May 28, 2024
by
zhoujianping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.支付宝小程序退款接口增加回调地址
parent
1d1bcbb7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
PayChannelStrategyAlipayImpl.java
...n/channel/strategy/impl/PayChannelStrategyAlipayImpl.java
+1
-1
DragonOrderRefundsServiceImpl.java
...ce/dragon/service/impl/DragonOrderRefundsServiceImpl.java
+10
-3
No files found.
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/dragon/channel/strategy/impl/PayChannelStrategyAlipayImpl.java
View file @
a35c62ab
...
...
@@ -101,7 +101,7 @@ public class PayChannelStrategyAlipayImpl extends AbstractPayChannelStrategyImpl
//退款
if
(
notifyMap
.
containsKey
(
"refund_fee"
)
||
notifyMap
.
containsKey
(
"gmt_refund"
)
||
notifyMap
.
containsKey
(
"out_biz_no"
))
{
returnStr
=
dragonOrderRefundsService
.
aliPayRefundCallBack
(
JSON
.
toJSONString
(
notifyMap
));
returnStr
=
dragonOrderRefundsService
.
aliPayRefundCallBack
(
JSON
.
toJSONString
(
notifyMap
)
,
payType
,
deviceFrom
);
return
returnStr
;
}
...
...
liquidnet-bus-service/liquidnet-service-order/liquidnet-service-order-impl/src/main/java/com/liquidnet/service/dragon/service/impl/DragonOrderRefundsServiceImpl.java
View file @
a35c62ab
...
...
@@ -951,7 +951,7 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
return
null
;
}
public
String
aliPayRefundCallBack
(
String
jsonStr
)
{
public
String
aliPayRefundCallBack
(
String
jsonStr
,
String
payType
,
String
deviceFrom
)
{
LocalDateTime
nowTime
=
LocalDateTime
.
now
();
try
{
AliPayRefundReturnCallBackDto
callBackDto
=
JsonUtils
.
fromJson
(
jsonStr
,
AliPayRefundReturnCallBackDto
.
class
);
...
...
@@ -960,9 +960,16 @@ public class DragonOrderRefundsServiceImpl implements IDragonOrderRefundsService
"\"out_trade_no\":\""
+
callBackDto
.
getOutTradeNo
()
+
"\","
+
"\"trade_no\":\""
+
callBackDto
.
getTradeNo
()
+
"\","
+
"\"out_request_no\":\""
+
callBackDto
.
getOutBizNo
()
+
"\"}"
);
//设置业务参数
AlipayTradeFastpayRefundQueryResponse
response
=
PayAlipayUtils
.
getInstance
().
getHttpClient
().
execute
(
request
);
log
.
info
(
"AlipayTradeFastpayRefundQueryRequest -> data = "
+
JSON
.
toJSONString
(
response
));
AlipayClient
httpClient
=
null
;
if
(
payType
.
equals
(
DragonConstant
.
PayChannelEnum
.
ALIPAY
.
getCode
())
&&
deviceFrom
.
equals
(
DragonConstant
.
DeviceFromEnum
.
APPLET
.
getCode
())){
//支付小程序
httpClient
=
PayAlipayUtils
.
getInstance
().
getHttpClientApplet
();
}
else
{
httpClient
=
PayAlipayUtils
.
getInstance
().
getHttpClient
();
}
AlipayTradeFastpayRefundQueryResponse
response
=
httpClient
.
execute
(
request
);
log
.
info
(
"AlipayTradeFastpayRefundQueryRequest -> data = "
+
JSON
.
toJSONString
(
response
));
if
(
response
.
isSuccess
())
{
try
{
NotifyUrlDto
dto
=
new
NotifyUrlDto
();
...
...
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