up
This commit is contained in:
+8
-3
@@ -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()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user