From a00788964df095bca38d2910eec37d53f7a80625 Mon Sep 17 00:00:00 2001 From: jinye_huang Date: Sun, 27 Apr 2025 09:29:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E6=B5=B7=E6=8A=A5?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/poster_gen.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/poster_gen.py b/core/poster_gen.py index 84410ea..cfc11b4 100644 --- a/core/poster_gen.py +++ b/core/poster_gen.py @@ -35,15 +35,15 @@ class PosterConfig: print(f"JSON解析错误: {e}") print(f"尝试解析的内容: {config_path[:100]}...") # 只打印前100个字符 # 创建一个默认配置 - self.config = [{"index": 0, "main_title": "景点风光", "texts": ["自然美景", "人文体验"]}] - self.img_list = [[0, "景点风光", ["自然美景", "人文体验"]]] - print("使用默认配置") + self.config = [{"index": 0, "main_title": "", "texts": [""]}] + self.img_list = [[0, "", [""]]] + print("使用默认的空配置") except Exception as e: print(f"加载配置时出错: {e}") # 创建一个默认配置 - self.config = [{"index": 0, "main_title": "景点风光", "texts": ["自然美景", "人文体验"]}] - self.img_list = [[0, "景点风光", ["自然美景", "人文体验"]]] - print("使用默认配置") + self.config = [{"index": 0, "main_title": " ", "texts": [""]}] + self.img_list = [[0, " ", [""]]] + print("使用默认的空配置") def get_config(self): return self.config