From dd95921c89facda6878e073deabe29682fc05e1d Mon Sep 17 00:00:00 2001 From: Hommy <16620803786@163.com> Date: Mon, 2 Mar 2026 20:04:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=B7=BB=E5=8A=A0=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E8=B5=84=E6=BA=90=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/service/add_images.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/service/add_images.py b/src/service/add_images.py index 1c7f760..00c2e57 100644 --- a/src/service/add_images.py +++ b/src/service/add_images.py @@ -408,10 +408,10 @@ def parse_image_data(json_str: str) -> List[Dict[str, Any]]: # 创建处理后的对象,设置默认值 processed_item = { "image_url": item["image_url"], - "width": item["width"], - "height": item["height"], - "start": item["start"], - "end": item["end"], + "width": int(item["width"]), + "height": int(item["height"]), + "start": int(item["start"]), + "end": int(item["end"]), "in_animation": item.get("in_animation", None), # 默认无入场动画 "out_animation": item.get("out_animation", None), # 默认无出场动画 "loop_animation": item.get("loop_animation", None), # 默认无循环动画