From b36ead72a90faf8c5459cdf0ed912e0b292851ef Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 07 四月 2026 08:47:59 +0800
Subject: [PATCH] 2026.4.7 1. 调整静安工地扬尘监测点信息接口的单页获取量从100增加至1000
---
src/main/kotlin/cn/flightfeather/supervision/common/net/JinAnLianTongHttpService.kt | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/main/kotlin/cn/flightfeather/supervision/common/net/JinAnLianTongHttpService.kt b/src/main/kotlin/cn/flightfeather/supervision/common/net/JinAnLianTongHttpService.kt
index 16e44ac..65c9c72 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/common/net/JinAnLianTongHttpService.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/common/net/JinAnLianTongHttpService.kt
@@ -24,7 +24,8 @@
const val TAG = "JinAnLianTongHttpService"
private const val TOKEN = "e6dc8bb9e1ff0ce973fb92b4af2e4c3f"
- private val httpMethod: HttpMethod = HttpMethod("101.230.224.77", 8088, true)
+ // private val httpMethod: HttpMethod = HttpMethod("101.230.224.77", 8088, true)
+ private val httpMethod: HttpMethod = HttpMethod("fmepi.jingan.gov.cn", 8088, true)
open class RequestData(
val current: Int = 1,
@@ -78,7 +79,7 @@
/**
* 鏍规嵁杩斿洖缁撴灉鍒ゆ柇鏄惁鏈変笅涓�鍒嗛〉
*/
- private fun nextPage(data: JsonObject):Boolean {
+ private fun nextPage(data: JsonObject): Boolean {
val current = data["current"].asInt
val pages = data["pages"].asInt
return current < pages
@@ -136,14 +137,14 @@
* 鑾峰彇宸ュ湴鎵皹鐩戞祴鐐逛俊鎭�
*/
fun getConstructionDustMonitorSiteInfo(page: Int = 1): Pair<Boolean, List<JinAnConstructionInfo>> {
- val requestData = RequestData(page, 100)
+ val requestData = RequestData(page, 1000)
return post("/api/dust/v1/getConstructionDustMonitorSiteInfo", requestData)
}
/**
* 鏌ヨ宸ュ湴鎵皹鐩戞祴鐐瑰皬鏃舵暟鎹�
*/
- fun getHourlyDustData(page: Int = 1, sDate: Date?, eDate: Date?, perPage:Int = 5000): Pair<Boolean,
+ fun getHourlyDustData(page: Int = 1, sDate: Date?, eDate: Date?, perPage: Int = 5000): Pair<Boolean,
List<JinAnHourDustData>> {
val sStr = DateUtil.DateToString(sDate, DateUtil.DateStyle.YYYY_MM_DD_HH_MM_SS)
val eStr = DateUtil.DateToString(eDate, DateUtil.DateStyle.YYYY_MM_DD_HH_MM_SS)
--
Gitblit v1.9.3