This commit is contained in:
xaoyaoo 2024-08-07 17:31:57 +08:00
parent 5630ca4e77
commit 7f978824cd
2 changed files with 2 additions and 2 deletions

View File

@ -176,7 +176,7 @@ def init_nokey():
set_conf(g.caf, my_wxid, "wx_path", wx_path) set_conf(g.caf, my_wxid, "wx_path", wx_path)
set_conf(g.caf, my_wxid, "key", key) set_conf(g.caf, my_wxid, "key", key)
set_conf(g.caf, my_wxid, "my_wxid", my_wxid) set_conf(g.caf, my_wxid, "my_wxid", my_wxid)
set_conf(g.caf, "test", "last", my_wxid) set_conf(g.caf, g.at, "last", my_wxid)
rdata = { rdata = {
"merge_path": merge_path, "merge_path": merge_path,
"wx_path": wx_path, "wx_path": wx_path,

View File

@ -389,7 +389,7 @@ def get_wx_db(msg_dir: str = None,
db_types = None db_types = None
wxid_dirs = {} # wx用户目录 wxid_dirs = {} # wx用户目录
if "All Users" in os.listdir(msg_dir) or "Applet" in os.listdir(msg_dir) or "WMPF" in os.listdir(msg_dir): if wxids or "All Users" in os.listdir(msg_dir) or "Applet" in os.listdir(msg_dir) or "WMPF" in os.listdir(msg_dir):
for sub_dir in os.listdir(msg_dir): for sub_dir in os.listdir(msg_dir):
if os.path.isdir(os.path.join(msg_dir, sub_dir)) and sub_dir not in ["All Users", "Applet", "WMPF"]: if os.path.isdir(os.path.join(msg_dir, sub_dir)) and sub_dir not in ["All Users", "Applet", "WMPF"]:
wxid_dirs[os.path.basename(sub_dir)] = os.path.join(msg_dir, sub_dir) wxid_dirs[os.path.basename(sub_dir)] = os.path.join(msg_dir, sub_dir)