From 5a220bc39a0c3925afe835c4cd2b2315e008b1c5 Mon Sep 17 00:00:00 2001 From: "kyj@bowong.ai" Date: Fri, 13 Jun 2025 12:50:18 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=E4=BF=AE=E5=A4=8D=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=88=B0CDN=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nodes/s3.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nodes/s3.py b/nodes/s3.py index 1c82375..bfc7429 100644 --- a/nodes/s3.py +++ b/nodes/s3.py @@ -102,7 +102,6 @@ class S3UploadURL: def INPUT_TYPES(s): return { "required": { - "s3_bucket": ("STRING", {"default": "bw-comfyui-output"}), "path": ("STRING", {"multiline": True}), "subfolder": ("STRING", {"default": "test"}), } @@ -114,7 +113,8 @@ class S3UploadURL: FUNCTION = "upload" CATEGORY = "不忘科技-自定义节点🚩/S3" - def upload(self, s3_bucket, path, subfolder): + def upload(self, path, subfolder): + s3_bucket = "modal-media-cache" loguru.logger.info(f"S3 UPLOAD {path} to {s3_bucket}/{subfolder}") try: if "aws_key_id" in list(os.environ.keys()): @@ -138,7 +138,7 @@ class S3UploadURL: client.upload_file(path, s3_bucket, dest_key) except Exception as e: raise Exception(f"S3上传失败! bucket {s3_bucket}; local_path {path}; subfolder {subfolder}") - url = f"https://{s3_bucket}.s3.dualstack.ap-northeast-2.amazonaws.com/{dest_key}" + url = f"https://cdn.roasmax.cn/{dest_key}" return (url,)