添加异性wxid获取方式,添加用户路径自动获取
This commit is contained in:
parent
3413887810
commit
52aab2b8a0
@ -8,9 +8,7 @@
|
|||||||
import json
|
import json
|
||||||
import ctypes
|
import ctypes
|
||||||
import os
|
import os
|
||||||
import re
|
|
||||||
import winreg
|
import winreg
|
||||||
|
|
||||||
import pymem
|
import pymem
|
||||||
from win32com.client import Dispatch
|
from win32com.client import Dispatch
|
||||||
import psutil
|
import psutil
|
||||||
@ -71,7 +69,7 @@ def get_info_wxid(h_process):
|
|||||||
return wxid
|
return wxid
|
||||||
|
|
||||||
|
|
||||||
def get_info_filePath(wxid):
|
def get_info_filePath(wxid="all"):
|
||||||
if not wxid:
|
if not wxid:
|
||||||
return "None"
|
return "None"
|
||||||
try:
|
try:
|
||||||
@ -88,10 +86,11 @@ def get_info_filePath(wxid):
|
|||||||
else:
|
else:
|
||||||
msg_dir = os.path.join(w_dir, "WeChat Files")
|
msg_dir = os.path.join(w_dir, "WeChat Files")
|
||||||
|
|
||||||
|
if wxid == "all" and os.path.exists(msg_dir):
|
||||||
|
return msg_dir
|
||||||
|
|
||||||
filePath = os.path.join(msg_dir, wxid)
|
filePath = os.path.join(msg_dir, wxid)
|
||||||
if not os.path.exists(filePath):
|
return filePath if os.path.exists(filePath) else "None"
|
||||||
return "None"
|
|
||||||
return filePath
|
|
||||||
|
|
||||||
|
|
||||||
# 读取内存中的key
|
# 读取内存中的key
|
||||||
|
Loading…
Reference in New Issue
Block a user