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-06-13 20:55:37 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
920862585f367f43a648b2dab375d873fc5681a0
92086258
1 parent
757cfeed
fix(payment): 修复支付回调中的时间格式转换问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
src/main/java/com/infoloop/tianting/service/client/PayServiceClient.java
src/main/java/com/infoloop/tianting/service/client/PayServiceClient.java
View file @
9208625
...
...
@@ -57,7 +57,6 @@ import java.text.ParseException;
import
java.time.Instant
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.time.ZoneOffset
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.stream.Collectors
;
...
...
@@ -209,10 +208,12 @@ public class PayServiceClient {
log
.
info
(
"callback updateClientCustomerOrder result: {}"
,
updateResponse
.
getIsUpdated
());
if
(
updateResponse
.
getIsUpdated
())
{
String
createdAt
=
Instant
.
ofEpochMilli
(
orderById
.
getCreatedAt
())
.
atZone
(
ZoneOffset
.
UTC
)
.
atZone
(
DateUtil
.
CHINA_ZONE
)
.
minusHours
(
8
)
.
format
(
DateUtil
.
Y_M_D_H_M_S
);
String
payTimed
=
Instant
.
ofEpochMilli
(
orderById
.
getPayTime
())
.
atZone
(
ZoneOffset
.
UTC
)
.
atZone
(
DateUtil
.
CHINA_ZONE
)
.
minusHours
(
8
)
.
format
(
DateUtil
.
Y_M_D_H_M_S
);
final
var
orderPaymentSuccessData
=
OrderPaymentSuccessData
.
builder
()
...
...
@@ -350,7 +351,8 @@ public class PayServiceClient {
// 构建paycontent
String
payTime
=
Instant
.
ofEpochMilli
(
orderById
.
getPayTime
())
.
atZone
(
ZoneOffset
.
UTC
)
.
atZone
(
DateUtil
.
CHINA_ZONE
)
.
minusHours
(
8
)
.
format
(
DateUtil
.
YMDHMS
);
BigDecimal
price
=
...
...
Please
register
or
login
to post a comment