2021与蓝度共同重构项目,服务端
fix
zhanzhiqin
2022-02-28 d877cf557db5452093087fabb4479a10497ee218
ximon-admin/src/main/java/com/sandu/ximon/admin/utils/LightemitUtils.java
@@ -32,10 +32,10 @@
    private OkHttpClient client = new OkHttpClient();
//    public void init(){
//        //重新获取单例
//        poleLightemitService = applicationContext.getBean(PoleLightemitService.class);
//    }
    public void init(){
        //重新获取单例
        poleLightemitService = applicationContext.getBean(PoleLightemitService.class);
    }
    /**
     * post请求封装方法
@@ -117,6 +117,7 @@
        //请求
//        poleLightemitService.updateRequestBody(ledCode, "");
        String result = post(url, postBody);
        LogUtils.error("清屏结果:"+result);
    }
    /**
@@ -333,12 +334,11 @@
        //请求
        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);
@@ -355,7 +355,6 @@
            return "0";
        }
    }
*/
    /**
     * 查询定时