处理图片下载流程

This commit is contained in:
liuwei
2025-04-28 13:23:33 +08:00
parent 54f056046d
commit 3af19fe253
2 changed files with 43 additions and 5 deletions

View File

@@ -122,11 +122,8 @@ 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)
json = self.client.download_image(msg.appid, msg.content.xml_content, 2)
# {
# "ret": 200,
# "msg": "操作成功",