統一全站暖色視覺與市場情報骨架
All checks were successful
CD Pipeline / deploy (push) Successful in 58s

This commit is contained in:
OoO
2026-05-06 20:24:46 +08:00
parent 153e4c9734
commit 30a173cf69
32 changed files with 4463 additions and 93 deletions

9
app.py
View File

@@ -96,7 +96,7 @@ except Exception as e:
# 🚩 系統版本定義 (備份與顯示用)
# 🚩 2026-05-01 V10.76: Move monthly analysis report onto V2 shell
SYSTEM_VERSION = "V10.77"
SYSTEM_VERSION = "V10.86"
# ==========================================
# 🔒 SQL Injection 防護函數
@@ -378,6 +378,10 @@ from routes.pchome_routes import pchome_bp
app.register_blueprint(pchome_bp)
sys_log.info("[Blueprint] ✅ pchome_bp 已註冊")
from routes.market_intel_routes import market_intel_bp
app.register_blueprint(market_intel_bp)
sys_log.info("[Blueprint] ✅ market_intel_bp 已註冊")
# V-Fix: 註冊 slugify 函數供模板使用(實作搬至 utils/text_helpers.py
from utils.text_helpers import slugify # noqa: E402
@@ -398,6 +402,9 @@ EXPECTED_METADATA_TABLES = {
'import_jobs', 'import_config', 'notification_templates', 'ppt_reports',
'vendor_stockout', 'vendor_list', 'vendor_emails', 'email_send_log',
'realtime_sales_monthly',
'market_platforms', 'market_campaigns', 'market_campaign_snapshots',
'market_campaign_products', 'market_product_price_history',
'market_product_matches', 'market_crawler_runs',
}