From 4039d3c5de3ed0999c356ad1099c82ee5db23bf4 Mon Sep 17 00:00:00 2001 From: zhouchengrong Date: Thu, 18 Jul 2024 11:51:50 +0800 Subject: [PATCH] =?UTF-8?q?feat=20fix=20=E4=BF=AE=E5=A4=8D=E5=88=86?= =?UTF-8?q?=E5=89=B2=E5=90=8Eresize=E6=97=B6=20=E5=87=BA=E7=8E=B0=E7=9A=84?= =?UTF-8?q?=E6=8F=92=E5=80=BC=E9=97=AE=E9=A2=98=EF=BC=8C=E5=9B=A0=E4=B8=BA?= =?UTF-8?q?=E6=97=B6=E5=85=88=E5=A2=9E=E5=8A=A0=E9=80=8F=E6=98=8E=E9=80=9A?= =?UTF-8?q?=E9=81=93=EF=BC=8C=E7=84=B6=E5=90=8Eresize=20=E6=8F=92=E5=80=BC?= =?UTF-8?q?=E6=8A=8A=E8=BE=B9=E7=BC=98=E9=83=A8=E5=88=86=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=8D=8A=E9=80=8F=E6=98=8E=20=E6=89=80=E4=BB=A5?= =?UTF-8?q?=E5=87=BA=E7=8E=B0=E7=BC=9D=E9=9A=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/design/utils/synthesis_item.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/service/design/utils/synthesis_item.py b/app/service/design/utils/synthesis_item.py index 73d91c2..7bedbe6 100644 --- a/app/service/design/utils/synthesis_item.py +++ b/app/service/design/utils/synthesis_item.py @@ -116,8 +116,7 @@ def synthesis(data, size): # oss upload image_bytes = image_data.read() - bucket_name = 'test' - # bucket_name= "aida-results" + bucket_name = "aida-results" object_name = f'result_{generate_uuid()}.png' req = oss_upload_image(bucket=bucket_name, object_name=object_name, image_bytes=image_bytes) return f"{bucket_name}/{object_name}"