| | |
| | | new HttpEntity<>(new HttpHeaders()), |
| | | BaseResponse.class); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | //e.printStackTrace(); |
| | | return BaseResponseUtils.buildError("后端系统出错,中间件调用异常"); |
| | | } |
| | | if(response == null){ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 创建外部透传命令(发给控制器) |
| | | * @param code 命令code |
| | | * @return |
| | | */ |
| | | protected Command createOuterTransparentCommand(String comId, String code) { |
| | | Command com = new Command(); |
| | | com.id = comId; |
| | | com.code = code ; |
| | | com.type = CommandType.outerTransCommand; |
| | | return com ; |
| | | } |
| | | |
| | | /** |
| | | * 创建内部 |
| | | * @param code 命令code |
| | | * @return |