From 8ed83e01ffb5f68b90e5fd13fc2008e608c265f7 Mon Sep 17 00:00:00 2001 From: 潘志宝 <979469083@qq.com> Date: 星期二, 25 三月 2025 07:11:12 +0800 Subject: [PATCH] 蒸汽调度 调整速率 --- 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