| | |
| | | @SsoAop() |
| | | public BaseResponse<List<String>> rtuLogText(String rtuAddr){ |
| | | String mwUrlRtuLogText = env.getProperty(pro_mw + "." + DataSourceContext.get() + "." + key_mw_text); |
| | | return this.requestMw4Text(rtuAddr, mwUrlRtuLogText) ; |
| | | BaseResponse<List<String>> text = this.requestMw4Text(rtuAddr, mwUrlRtuLogText); |
| | | if (text != null){ |
| | | if (text.getContent().get(0).contains("控制器")){ |
| | | return BaseResponseUtils.buildErrorMsg(""+text.getContent().get(0)+"") ; |
| | | } |
| | | return text ; |
| | | }else { |
| | | return BaseResponseUtils.buildErrorMsg("获取日志文件为null") ; |
| | | } |
| | | // return this.requestMw4Text(rtuAddr, mwUrlRtuLogText) ; |
| | | } |
| | | |
| | | |