feat: 添加企业微信相关配置和功能支持

This commit is contained in:
xincheng
2026-04-05 02:19:11 +08:00
parent a84698b9fc
commit ebbea8c895
5 changed files with 476 additions and 10 deletions

View File

@@ -41,6 +41,9 @@ _DEFAULT = {
"decrypted_dir": "decrypted",
"decoded_image_dir": "decoded_images",
"wechat_process": _DEFAULT_PROCESS,
"wxwork_db_dir": "",
"wxwork_keys_file": "wxwork_keys.json",
"wxwork_process": "WXWork.exe",
}
@@ -213,8 +216,8 @@ def load_config():
# 将相对路径转为绝对路径
base = _app_base_dir()
for key in ("keys_file", "decrypted_dir", "decoded_image_dir"):
if key in cfg and not os.path.isabs(cfg[key]):
for key in ("keys_file", "decrypted_dir", "decoded_image_dir", "wxwork_keys_file"):
if key in cfg and cfg[key] and not os.path.isabs(cfg[key]):
cfg[key] = os.path.join(base, cfg[key])
# 自动推导微信数据根目录db_dir 的上级目录)