处理图片下载流程
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import time
|
||||
from datetime import datetime, timedelta
|
||||
import xml.etree.ElementTree as ET
|
||||
import logging
|
||||
@@ -121,7 +122,9 @@ class MessageStorage:
|
||||
# 确保目标目录存在
|
||||
if not os.path.exists(target_dir):
|
||||
os.makedirs(target_dir, exist_ok=True)
|
||||
|
||||
# 延时10秒下载试试
|
||||
logger.info(f"延时10秒下载图片{msg.content.xml_content}")
|
||||
time.sleep(10)
|
||||
# 尝试使用wcf下载图片到分组后的目录
|
||||
json = self.client.download_image(msg.appid, msg.content.xml_content, 1)
|
||||
# {
|
||||
|
||||
Reference in New Issue
Block a user