🐛 修正作物阶段绘制错误的BUG

🐛 修复偷菜会导致偷自己的BUG
This commit is contained in:
2025-05-30 11:22:32 +08:00
parent 1ef506d2fd
commit db294e6998
20 changed files with 64 additions and 51 deletions
+3 -3
View File
@@ -95,7 +95,7 @@ class CPlantManager:
return None
@classmethod
async def getPlantPhaseByName(cls, name: str) -> list:
async def getPlantPhaseByName(cls, name: str) -> list[int]:
"""根据作物名称获取作物各个阶段
Args:
@@ -119,8 +119,8 @@ class CPlantManager:
result = []
for x in phase:
if x not in seen:
seen.add(x)
result.append(x)
seen.add(int(x))
result.append(int(x))
return result
except Exception as e: