mirror of
https://github.com/LC044/WeChatMsg
synced 2025-02-22 10:52:18 +08:00
修改获取联系人的方式
This commit is contained in:
parent
5d59c9b380
commit
203ec10336
@ -47,7 +47,7 @@ class MicroMsg:
|
|||||||
sql = '''SELECT UserName, Alias, Type, Remark, NickName, PYInitial, RemarkPYInitial, ContactHeadImgUrl.smallHeadImgUrl, ContactHeadImgUrl.bigHeadImgUrl
|
sql = '''SELECT UserName, Alias, Type, Remark, NickName, PYInitial, RemarkPYInitial, ContactHeadImgUrl.smallHeadImgUrl, ContactHeadImgUrl.bigHeadImgUrl
|
||||||
FROM Contact
|
FROM Contact
|
||||||
INNER JOIN ContactHeadImgUrl ON Contact.UserName = ContactHeadImgUrl.usrName
|
INNER JOIN ContactHeadImgUrl ON Contact.UserName = ContactHeadImgUrl.usrName
|
||||||
WHERE (Type % 2 = 1 OR Type=2)
|
WHERE (Type!=4)
|
||||||
AND NickName != ''
|
AND NickName != ''
|
||||||
ORDER BY
|
ORDER BY
|
||||||
CASE
|
CASE
|
||||||
|
@ -632,17 +632,6 @@ class OutputMedia(QThread):
|
|||||||
msgSvrId = message[9]
|
msgSvrId = message[9]
|
||||||
try:
|
try:
|
||||||
audio_path = media_msg_db.get_audio(msgSvrId, output_path=origin_docx_path + "/voice")
|
audio_path = media_msg_db.get_audio(msgSvrId, output_path=origin_docx_path + "/voice")
|
||||||
audio_path = audio_path.replace('/', '\\')
|
|
||||||
if self.contact.is_chatroom:
|
|
||||||
if is_send:
|
|
||||||
displayname = MePC().name
|
|
||||||
else:
|
|
||||||
displayname = message[12].remark
|
|
||||||
else:
|
|
||||||
displayname = MePC().name if is_send else self.contact.remark
|
|
||||||
displayname = escape_js_and_html(displayname)
|
|
||||||
modify_audio_metadata(audio_path, displayname)
|
|
||||||
# os.utime(audio_path, (timestamp, timestamp))
|
|
||||||
except:
|
except:
|
||||||
logger.error(traceback.format_exc())
|
logger.error(traceback.format_exc())
|
||||||
finally:
|
finally:
|
||||||
@ -692,7 +681,7 @@ class OutputImage(QThread):
|
|||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
origin_docx_path = f"{os.path.abspath('.')}/data/聊天记录/{self.contact.remark}"
|
origin_docx_path = f"{os.path.abspath('.')}/data/聊天记录/{self.contact.remark}"
|
||||||
messages = msg_db.get_messages_by_type(self.contact.wxid, 3)
|
messages = msg_db.get_messages_by_type(self.contact.wxid,3)
|
||||||
for message in messages:
|
for message in messages:
|
||||||
str_content = message[7]
|
str_content = message[7]
|
||||||
BytesExtra = message[10]
|
BytesExtra = message[10]
|
||||||
|
Loading…
Reference in New Issue
Block a user