diff --git a/pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/ProjectIrsManage.java b/pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/ProjectIrsManage.java index bd27018..ee34253 100644 --- a/pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/ProjectIrsManage.java +++ b/pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/ProjectIrsManage.java @@ -1,5 +1,6 @@ package com.ningdatech.pmapi.irs.manage; +import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.ningdatech.irs.service.IRefreshTokenService; import com.ningdatech.pmapi.common.util.CryptUtils; @@ -72,11 +73,16 @@ public class ProjectIrsManage { } String url = coreBizUrl + "?" + - "dingCode=" + orgCode + "&matterName=" + businessName + "&oid=&useState=1&limit=10&page=1" + + "dingCode=&matterName=" + businessName + "&oid=&useState=1&limit=10&page=1" + "&appKey=" + appKey + "&sign=" + sign + "&requestTime=" + timestamp; ResponseEntity forEntity = restTemplate.getForEntity(url, JSONObject.class); - log.info("body :{}",forEntity.getBody()); + JSONObject body = forEntity.getBody(); + log.info("body :{}",body); + JSONObject datas = body.getJSONObject("datas"); + if(Objects.nonNull(datas)){ + return datas; + } return forEntity.getBody(); } }