道路线索应急巡查系统服务后台
feiyu02
2025-09-30 84569abda51ecf6c5549dec4cadee8d043422379
src/main/kotlin/com/flightfeather/grid/external/ClueHttpService.kt
@@ -34,7 +34,10 @@
        private const val TAG = "ClueHttpService"
        private const val TOKEN = "e6dc8bb9e1ff0ce973fb92b4af2e4c3f"
    }
    private val httpMethod: HttpMethod = HttpMethod("101.230.224.80", 8082)
    // 原始IP地址
//    private val httpMethod: HttpMethod = HttpMethod("101.230.224.80", 8082)
    // 2025.9.22 根据静安区第三方接口文档,修改IP地址
    private val httpMethod: HttpMethod = HttpMethod("fmepi.jingan.gov.cn", 8088, true)
    @Value("\${imgPath}")
    lateinit var imgPath: String
@@ -85,7 +88,8 @@
        val time = updateTime.replace(" ", "%20")
//        val time = updateTime
        try {
            val res = httpMethod.get("/feedback/queryYxfListNew", listOf(Pair("updateTime", time)), headTimeStamp())
            val res = httpMethod.get("/govProxy/feedback/queryYxfListNew", listOf(Pair("updateTime", time)),
                headTimeStamp())
            val data = resCheck(res).asJsonArray
            return GsonUtils.parserJsonToArrayBeans(data.toString(), ClueDto::class.java)
        } catch (e: Exception) {
@@ -95,7 +99,7 @@
    fun getClueFile(clueId: String): HttpMethod.MyResponse {
        try {
            return httpMethod.get("/feedback/getPDFNew", listOf(Pair("id", clueId)), headTimeStamp())
            return httpMethod.get("/govProxy/feedback/getPDFNew", listOf(Pair("id", clueId)), headTimeStamp())
        } catch (e: Exception) {
            throw BizException(e.message, e.cause)
        }
@@ -109,7 +113,7 @@
        val vo = ClueConclusionDto(clueConclusion)
        val dataJson = Gson().toJson(vo)
        try {
            val res = httpMethod.post("/feedback/thirdReportNew", dataJson, headTimeStamp())
            val res = httpMethod.post("/govProxy/feedback/thirdReportNew", dataJson, headTimeStamp())
            resCheck(res)
            clueConclusion.ccUploaded = true
            clueConclusion.ccUploadTime = Date()
@@ -145,7 +149,7 @@
        val entity = builder.build()
        try {
            val res = httpMethod.post("/feedback/questionReportNew", entity, headTimeStamp())
            val res = httpMethod.post("/govProxy/feedback/questionReportNew", entity, headTimeStamp())
            resCheck(res)
            clueQuestion.cqUploaded = true
            clueQuestion.cqUploadTime = Date()