From 387d97a13f6fafd87bea0ba3f9d1fd47cef184cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A5=BF=E7=93=9C=C2=B0?= Date: Fri, 12 Jun 2026 13:32:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E8=81=8C=E4=B8=9A=E8=AF=B4=E6=98=8E=E4=B8=8D=E5=AE=8C=E6=95=B4?= =?UTF-8?q?=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/api/utils/skill_tree.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/api/utils/skill_tree.py b/backend/api/utils/skill_tree.py index 5f801ba5..6c3a0ec8 100644 --- a/backend/api/utils/skill_tree.py +++ b/backend/api/utils/skill_tree.py @@ -21,7 +21,12 @@ def load_skill_tree_with_desc_special(job_id: str, job_grow_id: str) -> list[dic detail_path = detail_dir / f'{skill_id}.json' if detail_path.exists(): with detail_path.open(encoding='utf-8') as file: - desc_special = json.load(file).get('descSpecial') + skill_data = json.load(file) + desc_special = skill_data.get('descSpecial') + optionDesc = skill_data.get('levelInfo', {}).get('optionDesc','') + if optionDesc and '压制力' in optionDesc and not any(desc in (desc_special or []) for desc in ['压制', '压制力']): + desc_special = (desc_special or []) + ['压制'] + skill['descSpecial'] = desc_special return skills_data