This commit is contained in:
2024-06-22 10:20:00 +08:00
parent e0acc767a7
commit 12080cb162
@@ -231,9 +231,14 @@ class PoiLocation {
} }
""" """
HttpRequest request = new HttpRequest() HttpRequest request = new HttpRequest()
String res = request.postWithBody(seawaterUrl, JSONObject.fromObject(body.toString()), header, "UTF-8") try{
def response = JSONObject.fromObject(res) String res = request.postWithBody(seawaterUrl, JSONObject.fromObject(body.toString()), header, "UTF-8")
println(response) def response = JSONObject.fromObject(res)
println(response)
}catch(Exception e){
println "error : "+e.getMessage()
}
} }