ai-refactor(flow): 调整抽象流程节点实现和依赖路径
- 修改 AbstractProcessNode 中 ProcessContext 的命名空间引用为 app\flow\context\ProcessContext - 引入 app\flow\vo\CanHandleResult 用于节点处理结果表示 - 更新前置策略执行后对成功状态的判断,改为调用 isSuccess() 方法 - 增加日志记录细节,便于调试策略执行中断时的错误信息 - 优化代码注释,提升代码可读性和维护性
This commit is contained in:
@@ -142,11 +142,11 @@ class VoiceGenerationStrategy extends AbstractStrategy
|
||||
{
|
||||
$reminds = [];
|
||||
|
||||
if ($context->needLeakTestRemind()) {
|
||||
if ($context->isLeakTestRemindNeeded()) {
|
||||
$reminds[] = ',清洗开始前,请测漏';
|
||||
}
|
||||
|
||||
if ($context->needStorageRemind()) {
|
||||
if ($context->isStorageRemindNeeded()) {
|
||||
$reminds[] = ',未登记取出';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user