mirror of
https://github.com/LC044/WeChatMsg
synced 2025-02-22 19:02:17 +08:00
修复一些bug
This commit is contained in:
parent
1864863885
commit
360419ead9
@ -364,8 +364,9 @@ class ChildThread(QThread):
|
|||||||
if video_path is None and image_path is not None:
|
if video_path is None and image_path is not None:
|
||||||
image_path = path.get_relative_path(image_path, base_path=f'/data/聊天记录/{self.contact.remark}/image')
|
image_path = path.get_relative_path(image_path, base_path=f'/data/聊天记录/{self.contact.remark}/image')
|
||||||
image_path = image_path
|
image_path = image_path
|
||||||
os.utime(origin_docx_path + image_path[1:], (timestamp, timestamp))
|
try:
|
||||||
print(origin_docx_path + image_path[1:])
|
print(origin_docx_path + image_path[1:])
|
||||||
|
os.utime(origin_docx_path + image_path[1:], (timestamp, timestamp))
|
||||||
image_path = image_path.replace('\\', '/')
|
image_path = image_path.replace('\\', '/')
|
||||||
# print(f"tohtml:---{image_path}")
|
# print(f"tohtml:---{image_path}")
|
||||||
if self.is_5_min(timestamp):
|
if self.is_5_min(timestamp):
|
||||||
@ -375,6 +376,10 @@ class ChildThread(QThread):
|
|||||||
doc.write(
|
doc.write(
|
||||||
f'''{{ type:3, text: '{image_path}',is_send:{is_send},avatar_path:'{avatar}'}},'''
|
f'''{{ type:3, text: '{image_path}',is_send:{is_send},avatar_path:'{avatar}'}},'''
|
||||||
)
|
)
|
||||||
|
except:
|
||||||
|
doc.write(
|
||||||
|
f'''{{ type:1, text: '视频丢失',is_send:{is_send},avatar_path:'{avatar}'}},'''
|
||||||
|
)
|
||||||
return
|
return
|
||||||
if video_path is None and image_path is None:
|
if video_path is None and image_path is None:
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user