Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
mall
Commits
f3747c80
Commit
f3747c80
authored
Sep 19, 2023
by
macro
Browse files
修改支付状态查询逻辑
parent
b3bc051e
Changes
2
Hide whitespace changes
Inline
Side-by-side
mall-portal/src/main/java/com/macro/mall/portal/service/AlipayService.java
View file @
f3747c80
...
...
@@ -23,6 +23,7 @@ public interface AlipayService {
String
notify
(
Map
<
String
,
String
>
params
);
/**
* 查询支付宝交易状态
* @param outTradeNo 商户订单编号
* @param tradeNo 支付宝交易编号
* @return 支付宝交易状态
...
...
mall-portal/src/main/java/com/macro/mall/portal/service/impl/AlipayServiceImpl.java
View file @
f3747c80
...
...
@@ -119,7 +119,9 @@ public class AlipayServiceImpl implements AlipayService {
}
if
(
response
.
isSuccess
()){
log
.
info
(
"查询支付宝账单成功!"
);
portalOrderService
.
paySuccessByOrderSn
(
outTradeNo
,
1
);
if
(
"TRADE_SUCCESS"
.
equals
(
response
.
getTradeStatus
())){
portalOrderService
.
paySuccessByOrderSn
(
outTradeNo
,
1
);
}
}
else
{
log
.
error
(
"查询支付宝账单失败!"
);
}
...
...
Write
Preview
Supports
Markdown
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