From c9dc5839dbe2e94f722a89ad790eb13153c405e7 Mon Sep 17 00:00:00 2001 From: egg Date: Wed, 17 Dec 2025 10:33:47 +0800 Subject: [PATCH] fix: Correct hidden imports in backend build.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change app.auth to app.routers.auth (correct path) - Change app.routers.dify to app.routers.ai (actual module name) - Change app.routers.excel to app.routers.export (actual module name) - Remove app.routers.health (doesn't exist) - Add app.models and app.models.schemas Also add database credentials to config.json for embedded mode. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- backend/build.py | 8 ++++---- client/config.json | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/backend/build.py b/backend/build.py index 9fcb28d..5ab9e1d 100644 --- a/backend/build.py +++ b/backend/build.py @@ -61,13 +61,13 @@ def build(): "--hidden-import", "app.main", "--hidden-import", "app.config", "--hidden-import", "app.database", - "--hidden-import", "app.auth", "--hidden-import", "app.routers", "--hidden-import", "app.routers.auth", "--hidden-import", "app.routers.meetings", - "--hidden-import", "app.routers.dify", - "--hidden-import", "app.routers.health", - "--hidden-import", "app.routers.excel", + "--hidden-import", "app.routers.ai", + "--hidden-import", "app.routers.export", + "--hidden-import", "app.models", + "--hidden-import", "app.models.schemas", # Collect package data "--collect-data", "pydantic", "--collect-data", "uvicorn", diff --git a/client/config.json b/client/config.json index 5fa502a..702d02c 100644 --- a/client/config.json +++ b/client/config.json @@ -14,19 +14,19 @@ "database": { "host": "mysql.theaken.com", "port": 33306, - "user": "", - "password": "", - "database": "" + "user": "A060", + "password": "WLeSCi0yhtc7", + "database": "db_A060" }, "externalApis": { "authApiUrl": "https://pj-auth-api.vercel.app/api/auth/login", "difyApiUrl": "https://dify.theaken.com/v1", - "difyApiKey": "", - "difySttApiKey": "" + "difyApiKey": "app-oFptWFRlSgvwhJ8DzZKN08a0", + "difySttApiKey": "app-xQeSipaQecs0cuKeLvYDaRsu" }, "auth": { - "adminEmail": "", - "jwtSecret": "", + "adminEmail": "ymirliu@panjit.com.tw", + "jwtSecret": "your_jwt_secret_here", "jwtExpireHours": 24 } }