增加注释,增加自定义实时合并数据库路径
This commit is contained in:
parent
1922c1da39
commit
ccbcf5878c
@ -207,7 +207,10 @@ def get_real_time_msg():
|
|||||||
if not merge_path or not key or not wx_path or not wx_path:
|
if not merge_path or not key or not wx_path or not wx_path:
|
||||||
return ReJson(1002, body="msg_path or media_path or wx_path or key is required")
|
return ReJson(1002, body="msg_path or media_path or wx_path or key is required")
|
||||||
|
|
||||||
code, ret = all_merge_real_time_db(key=key, wx_path=wx_path, merge_path=merge_path)
|
real_time_exe_path = get_conf(g.caf, g.at, "real_time_exe_path")
|
||||||
|
|
||||||
|
code, ret = all_merge_real_time_db(key=key, wx_path=wx_path, merge_path=merge_path,
|
||||||
|
real_time_exe_path=real_time_exe_path)
|
||||||
if code:
|
if code:
|
||||||
return ReJson(0, ret)
|
return ReJson(0, ret)
|
||||||
else:
|
else:
|
||||||
|
@ -393,7 +393,7 @@ def decrypt_merge(wx_path: str, key: str, outpath: str = "",
|
|||||||
|
|
||||||
|
|
||||||
@wx_core_error
|
@wx_core_error
|
||||||
def merge_real_time_db(key, merge_path: str, db_paths: [dict] or dict, real_time_exe_path=None):
|
def merge_real_time_db(key, merge_path: str, db_paths: [dict] or dict, real_time_exe_path: str = None):
|
||||||
"""
|
"""
|
||||||
合并实时数据库消息,暂时只支持64位系统
|
合并实时数据库消息,暂时只支持64位系统
|
||||||
:param key: 解密密钥
|
:param key: 解密密钥
|
||||||
@ -451,13 +451,14 @@ def merge_real_time_db(key, merge_path: str, db_paths: [dict] or dict, real_time
|
|||||||
|
|
||||||
|
|
||||||
@wx_core_error
|
@wx_core_error
|
||||||
def all_merge_real_time_db(key, wx_path, merge_path: str, real_time_exe_path=None):
|
def all_merge_real_time_db(key, wx_path, merge_path: str, real_time_exe_path: str = None):
|
||||||
"""
|
"""
|
||||||
合并所有实时数据库
|
合并所有实时数据库
|
||||||
注:这是全量合并,会有可能产生重复数据,需要自行去重
|
注:这是全量合并,会有可能产生重复数据,需要自行去重
|
||||||
:param key: 解密密钥
|
:param key: 解密密钥
|
||||||
:param wx_path: 微信路径
|
:param wx_path: 微信路径
|
||||||
:param merge_path: 合并后的数据库路径 eg: C:\\*******\\WeChat Files\\wxid_*********\\merge.db
|
:param merge_path: 合并后的数据库路径 eg: C:\\*******\\WeChat Files\\wxid_*********\\merge.db
|
||||||
|
:param real_time_exe_path: 实时数据库合并工具路径
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
if not merge_path or not key or not wx_path or not wx_path:
|
if not merge_path or not key or not wx_path or not wx_path:
|
||||||
|
Loading…
Reference in New Issue
Block a user