From 0a10ce9e1eb3245eb0970ea9c0c9720017cb44c1 Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期五, 14 三月 2025 14:19:26 +0800 Subject: [PATCH] 修改post请求方法 --- shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/SyncSegmentedDataTask.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/SyncSegmentedDataTask.java b/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/SyncSegmentedDataTask.java index e88f129..14b5ac5 100644 --- a/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/SyncSegmentedDataTask.java +++ b/shasteel-biz/src/main/java/com/iailab/module/shasteel/job/task/SyncSegmentedDataTask.java @@ -118,7 +118,7 @@ String year = String.valueOf(date.getYear()); paramsMap.put("clock", year); logger.info("请求参数:" + JSON.toJSONString(paramsMap)); - String resp = HttpUtils.sendPost(QUERY_SEGMENTED_DATA_URL, JSON.toJSONString(paramsMap), accessToken); + String resp = HttpUtils.sendPostToken(QUERY_SEGMENTED_DATA_URL, JSON.toJSONString(paramsMap), accessToken); logger.info("获取分段数据的返回值:" + resp); JSONObject jsonObject = JSON.parseObject(resp); List<ElectricityPriceSegmentedDTO> list = jsonObject.getJSONArray("data").toJavaList(ElectricityPriceSegmentedDTO.class); @@ -132,4 +132,5 @@ cipher.init(Cipher.ENCRYPT_MODE, publicKey); return Base64.getEncoder().encodeToString(cipher.doFinal(data.getBytes())); } + } -- Gitblit v1.9.3