| | |
| | | try { |
| | | CommonResponse result = objectMapper.readValue(exchange.getBody(), CommonResponse.class); |
| | | if (result.getCode() == 200) { |
| | | return R.ok(); |
| | | return R.ok(result.getMsg()).add(result.getData()); |
| | | } else { |
| | | return R.error(result.getMsg()); |
| | | // throw new CoolException("任务执行状态上报失败!!"); |
| | |
| | | try { |
| | | CommonResponse result = objectMapper.readValue(exchange.getBody(), CommonResponse.class); |
| | | if (result.getCode() == 200) { |
| | | return R.ok(); |
| | | return R.ok().add(result.getData()); |
| | | } else { |
| | | return R.error(result.getMsg()); |
| | | // throw new CoolException("任务执行状态上报失败!!"); |
| | |
| | | try { |
| | | CommonResponse result = objectMapper.readValue(exchange.getBody(), CommonResponse.class); |
| | | if (result.getCode() == 200) { |
| | | return R.ok(); |
| | | return R.ok().add(result.getData()); |
| | | } else { |
| | | return R.error(result.getMsg()); |
| | | // throw new CoolException("任务执行状态上报失败!!"); |
| | |
| | | try { |
| | | CommonResponse result = objectMapper.readValue(exchange.getBody(), CommonResponse.class); |
| | | if (result.getCode() == 200) { |
| | | return R.ok(); |
| | | return R.ok().add(result.getData()); |
| | | } else { |
| | | return R.error(result.getMsg()); |
| | | // throw new CoolException("任务执行状态上报失败!!"); |