todo(flow): 新增虚拟清洗机节点支持

This commit is contained in:
zimoyin
2026-03-09 00:21:02 +08:00
parent 0dc63f405a
commit d31eae990f
2 changed files with 11 additions and 17 deletions
+3 -17
View File
@@ -2,6 +2,7 @@
namespace app\flow\nodes;
use app\config\Config;
use app\flow\DbOperationType;
use app\flow\ProcessContext;
use app\flow\VoiceMessage;
@@ -44,29 +45,14 @@ class VirtualWashMachineNode extends AbstractProcessNode
return false;
}
// TODO
return false;
return Config::getInstance()->enableVirtualCleanerParser;
}
/**
* 具体处理逻辑
* TODO 具体处理逻辑
*/
protected function doHandle(ProcessContext $context): ProcessContext
{
// 设置流程类型为虚拟清洗机
$context->processType = '虚拟清洗机';
// 更新步骤
$context->currentStep = '虚拟清洗机';
// 标记需要数据库操作
$context->needDatabaseOperation = true;
$context->dbOperation = DbOperationType::INSERT;
$context->needWebSocketNotify = true;
// 更新批次
$context->dbOperation = DbOperationType::UPDATE;
return $context;
}
}