Browse Source

api 实体 irs

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

+ 5
- 3
pmapi/src/main/java/com/ningdatech/pmapi/irs/manage/AppIrsManage.java View File

@@ -87,9 +87,11 @@ public class AppIrsManage {
apiApply.setAppId(appCode);
JSONObject jsonObject = this.searchApp(apiApply);
VUtils.isTrue(Objects.isNull(jsonObject)).throwMessage("应用在IRS不存在!");
JSONArray data = jsonObject.getJSONArray("data");
VUtils.isTrue(CollUtil.isNotEmpty(data)).throwMessage("应用在IRS不存在!");
ApiApplySearchResult apiApplySearchResult = JSON.parseObject(JSON.toJSONString(data.get(0)),ApiApplySearchResult.class);
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);
VUtils.isTrue(Objects.isNull(apiApplySearchResult)).throwMessage("应用在IRS不存在!");

long timestamp = System.currentTimeMillis();


Loading…
Cancel
Save