Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jiujian
/
client-customer-order-api
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
zhuyifan
2025-11-19 11:26:18 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cd6a54a32de27d4e4c47e2abdb717892f5f633ee
cd6a54a3
1 parent
f0817e84
fix(pay): 优化支付回调交易ID更新逻辑
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/main/java/com/infoloop/tianting/service/client/PayServiceClient.java
src/main/java/com/infoloop/tianting/service/client/PayServiceClient.java
View file @
cd6a54a
...
...
@@ -39,6 +39,7 @@ import lombok.extern.slf4j.Slf4j;
import
org.apache.commons.codec.binary.Base64
;
import
org.apache.commons.codec.digest.DigestUtils
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.HttpEntity
;
import
org.springframework.http.HttpHeaders
;
...
...
@@ -201,8 +202,8 @@ public class PayServiceClient {
.
setPayStatus
(
PayStatusEnum
.
SUCCEED
)
.
setShouldUpdateStatus
(
true
)
.
setStatus
(
OrderStatusEnum
.
PREPARING
)
.
setShouldUpdateTransactionId
(
true
)
.
setTransactionId
(
paymentCallbackResult
.
getTradeReferenceNo
()
)
.
setShouldUpdateTransactionId
(
StringUtils
.
isNotEmpty
(
paymentCallbackResult
.
getTradeReferenceNo
())
)
.
setTransactionId
(
StringUtils
.
isNotEmpty
(
paymentCallbackResult
.
getTradeReferenceNo
())
?
paymentCallbackResult
.
getTradeReferenceNo
()
:
""
)
.
build
();
final
var
updateResponse
=
orderServiceRpcClient
.
updateClientCustomerOrderPaymentResult
(
orderById
,
build
);
...
...
Please
register
or
login
to post a comment