|
|
@ -36,11 +36,12 @@ public class FrontCmdController { |
|
|
|
String cmdId = form.getCmdId(); |
|
|
|
String cmdCode = form.getCmdCode(); |
|
|
|
try { |
|
|
|
if (!deviceStatus.isSelfTestCompleted()) { |
|
|
|
log.error("未进行自检,无法执行业务指令"); |
|
|
|
return Result.failed("未进行自检,无法执行业务指令"); |
|
|
|
if(!"motor_xyz_origin".equals(cmdCode)){ |
|
|
|
if (!deviceStatus.isSelfTestCompleted()) { |
|
|
|
log.error("未进行自检,无法执行业务指令"); |
|
|
|
return Result.failed("未进行自检,无法执行业务指令"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
webSocketService.pushDebugMsg(FrontResponseGenerator.generateJson(cmdId, cmdCode, CommandStatus.RECEIVE, "已收到业务指令请求,开始处理")); |
|
|
|
CommandHandler commandHandler = registry.getHandler(cmdCode); |
|
|
|
if (commandHandler == null) { |
|
|
|