| | |
| | | * 组装请求参数 |
| | | */ |
| | | JSONObject jsonBody = new JSONObject(); |
| | | jsonBody.put("eventTypes", Arrays.stream(eventVO.getEventTypes().split(",")).mapToInt(Integer::parseInt).toArray()); |
| | | jsonBody.put("eventTypes", Arrays.stream(eventVO.getEventTypes().split(",")).mapToLong(Long::parseLong).toArray()); |
| | | jsonBody.put("eventDest", eventVO.getEventDest()); |
| | | if (null!=eventVO.getSubType()){ |
| | | jsonBody.put("subType", eventVO.getSubType()); |
| | |
| | | * @return |
| | | */ |
| | | public static String removeEventSubscriptionByEventTypes(EventVO eventVO, String url) { |
| | | int[] eventTypes = Arrays.stream(eventVO.getEventTypes().split(",")).mapToInt(Integer::parseInt).toArray(); |
| | | long[] eventTypes = Arrays.stream(eventVO.getEventTypes().split(",")).mapToLong(Long::parseLong).toArray(); |
| | | /** |
| | | * 组装请求参数 |
| | | */ |