|
|
@@ -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(); |
|
|
|