From 1d7f4c2beddf9ab2dfb725f61ec79193c6f4b6ad Mon Sep 17 00:00:00 2001 From: hz4th_coder Date: Mon, 1 Jun 2026 16:02:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B8=85=E7=90=86=E6=A8=A1=E6=9D=BF?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=9C=AB=E5=B0=BE=E7=9A=84=E5=A4=9A=E4=BD=99?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除 templates_full.txt 末尾不应该存在的Python代码片段: - 移除 ''' 字符串结束标记 - 移除 if __name__ == '__main__' 部分 - 确保HTML模板在 处正确结束 这个问题可能导致页面加载异常 --- templates_full.txt | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/templates_full.txt b/templates_full.txt index 4abfc60..c0594e4 100644 --- a/templates_full.txt +++ b/templates_full.txt @@ -2353,14 +2353,4 @@ HTML_TEMPLATE = ''' }, 10000); - -''' - - -if __name__ == '__main__': - os.makedirs(os.path.join(BASE_DIR, 'logs'), exist_ok=True) - os.makedirs(CRON_BACKUP_DIR, exist_ok=True) - init_db() - - log_message("=" * 50) - log_message("项目服务管理面板 v2.0.0 启动") + \ No newline at end of file