fix(process): 修复自定义配置 required 不生效
This commit is contained in:
@@ -49,8 +49,10 @@ class WashNode extends AbstractProcessNode
|
||||
return CanHandleResult::cannotHandle(VoiceMessage::PLEASE_SWIPE_MORNING_WASH);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$validCurrentSteps = ['', '结束', '内镜取出', '内镜放入', '测漏正常', '晨洗'];
|
||||
if (!in_array($context->getCurrentStep(), $validCurrentSteps)) {
|
||||
if (!$this->isRequiredNode($context->getCurrentStep(), $validCurrentSteps)) {
|
||||
// 读卡器是清洗但步骤不对(如终末漂洗时刷清洗),提示应该先刷结束
|
||||
return CanHandleResult::cannotHandle();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user