fix protocol_node communication transfer

This commit is contained in:
Junhan Chang
2025-07-20 17:21:48 +08:00
parent 0c8c8d7a89
commit d6119115e8
2 changed files with 5 additions and 1 deletions

View File

@@ -84,7 +84,7 @@ def canonicalize_links_ports(data: dict) -> dict:
# 第一遍处理将字符串类型的port转换为字典格式
for link in data.get("links", []):
port = link.get("port")
if link["type"] == "physical":
if link.get("type", "physical") == "physical":
link["type"] = "fluid"
if isinstance(port, int):
port = str(port)