修复无法正常显示图片并报错的问题
This commit is contained in:
parent
8b723b250f
commit
9601cb0d77
@ -178,6 +178,9 @@ def load_chat_records(selected_talker, start_index, page_size, user_list, MSG_AL
|
||||
img_path = match.group(0).replace("'", "")
|
||||
# print(FileStorage_path)
|
||||
# print(img_path)
|
||||
img_path = img_path.split("\\")
|
||||
img_path = [i for i in img_path if i != ""]
|
||||
img_path = os.path.join(*img_path)
|
||||
if FileStorage_path:
|
||||
img_path = os.path.join(FileStorage_path, img_path)
|
||||
fomt, md5, out_bytes = read_img_dat(img_path)
|
||||
|
Loading…
Reference in New Issue
Block a user