| | |
| | | package com.sandu.ximon.admin.utils; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.sandu.common.execption.BusinessException; |
| | | import com.sandu.ximon.admin.config.BroadcastAPI; |
| | | import com.sandu.ximon.admin.utils.request.CommonRequestParams; |
| | | import com.sandu.ximon.admin.utils.response.CommonResponseVO; |
| | |
| | | * @param terminalId |
| | | * @param defaultVolumn |
| | | */ |
| | | public static boolean changeVol(Integer terminalId, Integer defaultVolumn, Long userId) { |
| | | public static boolean changeVol(Integer terminalId, Integer defaultVolumn) { |
| | | TerminalVO terminalInfo = getTerminalInfo(terminalId); |
| | | if(terminalInfo == null){ |
| | | throw new BusinessException("IP音柱硬件设备不存在"); |
| | | } |
| | | terminalInfo.setDefaultVolumn(defaultVolumn); |
| | | terminalInfo.setVolumn(defaultVolumn); |
| | | CommonResponseVO responseVO = JSON.parseObject( |
| | |
| | | CommonResponseVO.class |
| | | ); |
| | | if (responseVO.isOK()) { |
| | | // log("修改播放终端音量(id:"+terminalId+")",userId,null); |
| | | return true; |
| | | } |
| | | // logError("修改播放终端音量失败!(id:"+terminalId+")",userId,null); |
| | | return false; |
| | | } |
| | | |