| | |
| | | private OkHttpClient client = new OkHttpClient(); |
| | | |
| | | |
| | | // public void init(){ |
| | | // //重新获取单例 |
| | | // poleLightemitService = applicationContext.getBean(PoleLightemitService.class); |
| | | // } |
| | | public void init(){ |
| | | //重新获取单例 |
| | | poleLightemitService = applicationContext.getBean(PoleLightemitService.class); |
| | | } |
| | | |
| | | /** |
| | | * post请求封装方法 |
| | |
| | | //请求 |
| | | // poleLightemitService.updateRequestBody(ledCode, ""); |
| | | String result = post(url, postBody); |
| | | LogUtils.error("清屏结果:"+result); |
| | | } |
| | | |
| | | /** |
| | |
| | | |
| | | //请求 |
| | | String result = post(realtimeServerBean.getCommand() + ledCode, postBody); |
| | | LogUtils.error("设置结果:-------------------"+result); |
| | | } |
| | | |
| | | /* |
| | | 获取led音量 |
| | | */ |
| | | /*public String getVoiume(String ledCode){ |
| | | // 获取led音量 |
| | | public String getVoiume(String ledCode){ |
| | | GetVolume getVolume = new GetVolume(); |
| | | String postBody = new Gson().toJson(getVolume); |
| | | |
| | |
| | | return "0"; |
| | | } |
| | | } |
| | | */ |
| | | |
| | | /** |
| | | * 查询定时 |