Remove deprecated files and scripts related to cron jobs and WeChat server functionality. Update README to include new server startup methods using uWSGI and Gunicorn. Ensure callback server configuration is loaded properly in production environments. Clean up unnecessary test scripts and example files to streamline the project structure.

This commit is contained in:
2026-01-08 21:59:39 +08:00
parent 85cd7e9d3e
commit 4000438f49
45 changed files with 312 additions and 9057 deletions
+10
View File
@@ -261,5 +261,15 @@ def get_callback_server() -> WeChatCallbackServer:
def create_callback_app() -> Flask:
"""创建回调应用(用于外部集成)"""
# 确保配置已加载(用于uWSGI等部署环境)
from ..core.config_manager import load_config, get_config
# 检查配置是否已加载
try:
config = get_config()
except RuntimeError:
# 配置未加载,尝试加载默认配置
load_config()
server = get_callback_server()
return server.app