feat: include processed image url in wecom notice
This commit is contained in:
@@ -213,6 +213,7 @@ class AutoImagePipelineService:
|
|||||||
lines.append("处理结果:")
|
lines.append("处理结果:")
|
||||||
for idx, item in enumerate(links, 1):
|
for idx, item in enumerate(links, 1):
|
||||||
lines.append(f"{idx}. 图绘链接:{item.get('download_url') or '-'}")
|
lines.append(f"{idx}. 图绘链接:{item.get('download_url') or '-'}")
|
||||||
|
lines.append(f" 处理后图片:{item.get('image_url') or '-'}")
|
||||||
lines.append(f" 原图URL:{item.get('source_url') or '-'}")
|
lines.append(f" 原图URL:{item.get('source_url') or '-'}")
|
||||||
if failures:
|
if failures:
|
||||||
lines.append("失败项:")
|
lines.append("失败项:")
|
||||||
@@ -312,6 +313,7 @@ class AutoImagePipelineService:
|
|||||||
uploaded_links.append(
|
uploaded_links.append(
|
||||||
{
|
{
|
||||||
"download_url": upload_result.download_url,
|
"download_url": upload_result.download_url,
|
||||||
|
"image_url": upload_result.image_url,
|
||||||
"source_url": image_url,
|
"source_url": image_url,
|
||||||
"work_id": str(upload_result.work_id),
|
"work_id": str(upload_result.work_id),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user