| | |
| | | LOGIN("/login"), |
| | | KEEP_ALIVE("/online"), |
| | | |
| | | GET_TERMINAL("/get_terminal"), |
| | | GET_TERMINAL_LIST("/get_terminal_list"), |
| | | UPDATE_TERMINAL("/update_terminal"), |
| | | GET_TERMINAL("/get_player"), |
| | | GET_TERMINAL_LIST("/get_player_list"), |
| | | UPDATE_TERMINAL("/update_player"), |
| | | DEL_TERMINAL("/del_terminal"), |
| | | |
| | | GET_MIC_LIST("/get_mic_list"), |
| | |
| | | WxConfigEntity config; |
| | | //未设置支付参数,则使用默认支付参数 |
| | | config = getOne(Wrappers.lambdaQuery(WxConfigEntity.class).eq(WxConfigEntity::getClientId, pole.getClientId()).eq(WxConfigEntity::getState, 1)); |
| | | // if (pole.getClientId() == null) { |
| | | //没有归属的灯杆使用默认配置 |
| | | // config = getById(15); |
| | | // } |
| | | if (config == null) { |
| | | throw new BusinessException("用户未配置支付配置,请配置后重试"); |
| | | } |
| | |
| | | import com.sandu.ximon.admin.vo.ListDataResponseVO; |
| | | import com.sandu.ximon.admin.vo.TerminalVO; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | public class TerminalAPIUtils { |
| | |
| | | CharUtils.GBK), |
| | | ListDataResponseVO.class |
| | | ); |
| | | return responseVO.covertTerminalList(); |
| | | return responseVO.covertTerminalList() == null ? new ArrayList<>() : responseVO.covertTerminalList(); |
| | | // return responseVO.covertTerminalList(); |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public static boolean changeVol(Integer terminalId, Integer defaultVolumn) { |
| | | TerminalVO terminalInfo = getTerminalInfo(terminalId); |
| | | if(terminalInfo == null){ |
| | | if (terminalInfo == null) { |
| | | throw new BusinessException("IP音柱硬件设备不存在"); |
| | | } |
| | | terminalInfo.setDefaultVolumn(defaultVolumn); |