This commit is contained in:
启航 2026-01-26 21:34:18 +08:00
parent 9057f0abd6
commit 78c6556dee
1 changed files with 4 additions and 4 deletions

View File

@ -106,13 +106,13 @@ public class PddOrderApiController {
String appKey = checkResult.getData().getAppKey();
String appSecret = checkResult.getData().getAppSecret();
String pullParams = "{startTime:"+startTime+",endTime:"+endTime+"}";
String startTimeStr = startTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
String endTimeStr = endTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
String pullParams = "{startTime:"+startTime.format(formatter)+",endTime:"+endTime+"}";
// String startTimeStr = startTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
// String endTimeStr = endTime.format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
Long startTimestamp = startTime.toEpochSecond(ZoneOffset.ofHours(8));
Long endTimestamp = endTime.toEpochSecond(ZoneOffset.ofHours(8));
log.info("===============拉取pdd订单startTime" + startTimeStr + "endTime" + endTimeStr);
log.info("===============拉取pdd订单startTime" + startTime.format(formatter) + "endTime" + endTime.format(formatter));
//获取
ApiResultVo<OrderListResultVo> upResult = PddOrderApiHelper.pullOrderList(appKey, appSecret, accessToken, startTimestamp.intValue(), endTimestamp.intValue(), 1, 100);