| | |
| | | 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 |
| | |
| | | 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) { |
| | |
| | | |
| | | 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) |
| | | } |
| | |
| | | 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() |
| | |
| | | |
| | | 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() |