From 832947cace13a4e6f6c720f592597453c5b17331 Mon Sep 17 00:00:00 2001 From: PoffyZhang <99775271@qq.com> Date: Tue, 15 Aug 2023 17:29:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B8=E5=BF=83=E4=B8=9A=E5=8A=A1=20?= =?UTF-8?q?=E5=8F=91=E7=BA=BF=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ningdatech/pmapi/irs/manage/ProjectIrsManage.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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(); } }