Browse Source

api 实体 irs

master
PoffyZhang 1 year ago
parent
commit
58b87cb72a
1 changed files with 1 additions and 7 deletions
  1. +1
    -7
      pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java

+ 1
- 7
pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java View File

@@ -86,13 +86,7 @@ public class AppIrsManage {
ApiApplyDTO apiApply = new ApiApplyDTO();
apiApply.setAppId(appCode);
JSONObject jsonObject = this.searchApp(apiApply);
JSONObject datas = jsonObject.getJSONObject("datas");
VUtils.isTrue(Objects.isNull(datas)).throwMessage("应用在IRS不存在!");
JSONObject data = jsonObject.getJSONObject("data");
VUtils.isTrue(Objects.isNull(data)).throwMessage("应用在IRS不存在!");
JSONArray apiArray = data.getJSONArray("apiApplySearchResult");
VUtils.isTrue(CollUtil.isEmpty(apiArray)).throwMessage("应用在IRS不存在!");
ApiApplySearchResult apiApplySearchResult = JSON.parseObject(JSON.toJSONString(apiArray.get(0)),ApiApplySearchResult.class);
ApiApplySearchResult apiApplySearchResult = JSON.parseObject(JSON.toJSONString(jsonObject),ApiApplySearchResult.class);
VUtils.isTrue(Objects.isNull(apiApplySearchResult)).throwMessage("应用在IRS不存在!");

long timestamp = System.currentTimeMillis();


Loading…
Cancel
Save