调整
This commit is contained in:
parent
8c16585ae6
commit
ef97f2ded8
@ -181,7 +181,7 @@ public class WebSocketVueServiceImpl extends WebSocketService {
|
||||
// {"Topic":"sdcp/request/12345678","command":"PAUSE"}
|
||||
else if (command.equals(CapabilitieEnum.PAUSE.name())) {
|
||||
BusDevice device = myDeviceService.getByDeviceCode(deviceSn);
|
||||
if (!device.getStatus().equals(CurrentStatusEnum.SDCP_MACHINE_STATUS_PREPARE.getCode())) {
|
||||
if (!(device.getStatus().equals(CurrentStatusEnum.SDCP_MACHINE_STATUS_PRINTING.getCode()) && device.getStatus().equals(CurrentStatusEnum.SDCP_MACHINE_STATUS_PREPARE.getCode()))) {
|
||||
Map<String, Object> commandResult = new HashMap<>();
|
||||
commandResult.put("deviceSn", deviceSn);
|
||||
sendVueMessage(session, JSON.toJSONString(new SocketMsg(commandResult, "当前状态无法操作暂停", MsgEnum.ERROR)));
|
||||
|
Loading…
Reference in New Issue
Block a user