打印日志
This commit is contained in:
parent
0b0c5c743e
commit
7749a200da
@ -138,10 +138,13 @@ public class JinqianmaoTask {
|
|||||||
String projectNumber = project.getProjectNumber();
|
String projectNumber = project.getProjectNumber();
|
||||||
|
|
||||||
jsonInfo.put("proId", projectNumber);
|
jsonInfo.put("proId", projectNumber);
|
||||||
HttpResponse httpResponse = HttpRequest.post(getUrl("getDevList",companyConfig.getUrl(),companyConfig.getAk(),companyConfig.getSecret()))
|
String url = getUrl("getDevList", companyConfig.getUrl(), companyConfig.getAk(), companyConfig.getSecret());
|
||||||
|
HttpResponse httpResponse = HttpRequest.post(url)
|
||||||
.body(jsonInfo.toJSONString())
|
.body(jsonInfo.toJSONString())
|
||||||
.timeout(5 * 60 * 1000)
|
.timeout(5 * 60 * 1000)
|
||||||
.execute();
|
.execute();
|
||||||
|
log.info("saveJqmDev()的url:{}", url);
|
||||||
|
log.info("saveJqmDev()的body:{}", jsonInfo.toJSONString());
|
||||||
log.info("请求第三方接口getDevList响应体:{}", httpResponse);
|
log.info("请求第三方接口getDevList响应体:{}", httpResponse);
|
||||||
if (httpResponse.getStatus() == HttpStatus.HTTP_OK && httpResponse.body() != null) {
|
if (httpResponse.getStatus() == HttpStatus.HTTP_OK && httpResponse.body() != null) {
|
||||||
JSONObject response = JSON.parseObject(httpResponse.body());
|
JSONObject response = JSON.parseObject(httpResponse.body());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user