Skip to content

翻译错误#316

Merged
Lanly109 merged 9 commits into
cc004:mainfrom
SonderXiaoming:main
Jul 19, 2026
Merged

翻译错误#316
Lanly109 merged 9 commits into
cc004:mainfrom
SonderXiaoming:main

Conversation

@SonderXiaoming

Copy link
Copy Markdown
Contributor

是ai生成的不?
应该是翻译错误
神秘的环奈梦中告诉我这里有问题

@Lanly109

Lanly109 commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

应该是mzq那边的问题,当时直接搬过来的

Comment thread autopcr/module/modules/exequip.py Outdated

@name('保存ex状态')
@default(True)
@description('保存所有角色当前穿戴的普通EX装备状态,供恢复ex状态使用。数据保存在cache/modules/目录下,不影响账号配置。')

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

具体路径不用写在描述里

Comment thread autopcr/module/modules/exequip.py Outdated
state = _normal_ex_equip_state(client)
equipped_cnt = sum(1 for slots in state.values() for serial_id in slots.values() if serial_id)
unit_cnt = sum(1 for slots in state.values() if any(slots.values()))
_save_ex_equip_state_cache(self, state)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个函数没其他地方用到吧,放在类里函数而非全局函数

from os import makedirs
from os.path import dirname
import json
cache_path = _ex_equip_state_cache_path(module)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请使用find_cachesave_cache,而不是自定义逻辑,_load_ex_equip_state_cache同理

@SonderXiaoming

Copy link
Copy Markdown
Contributor Author

为什么pull request会持续推送(是你迟迟不合并的问题吧)回头改

@Lanly109
Lanly109 merged commit efbf3fb into cc004:main Jul 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants