bug #I932V4 组件降级,在寻找降级组件时,仍应该去查找下有没有对应的组件

This commit is contained in:
everywhere.z 2024-04-03 18:30:52 +08:00
parent 7a0ac1c7ca
commit 671762face
1 changed files with 6 additions and 1 deletions

View File

@ -43,7 +43,12 @@ public class FallbackNode extends Node {
@Override
public void execute(Integer slotIndex) throws Exception {
loadFallBackNode(slotIndex);
Node node = FlowBus.getNode(this.expectedNodeId);
if (node != null){
this.fallbackNode = node;
}else{
loadFallBackNode(slotIndex);
}
this.fallbackNode.setCurrChainId(this.getCurrChainId());
this.fallbackNode.execute(slotIndex);
}