fix: remove raw content path from ai recommendation UI
All checks were successful
CD Pipeline / deploy (push) Successful in 1m2s

This commit is contained in:
ogt
2026-06-26 18:38:28 +08:00
parent c268b5cc02
commit 55907c6fe2
4 changed files with 5 additions and 5 deletions

View File

@@ -402,7 +402,7 @@ YOUTUBE_API_KEY = os.getenv('YOUTUBE_API_KEY', '')
# ==========================================
# 系統版本與路徑
# ==========================================
SYSTEM_VERSION = "V10.714"
SYSTEM_VERSION = "V10.715"
LOG_FILE_PATH = os.path.join(BASE_DIR, 'logs/system.log')
public_url = PUBLIC_URL # 用於模板顯示

View File

@@ -2,7 +2,7 @@
> **最後更新**: 2026-06-26 (台北時間)
> **狀態**: 🟢 四 AI Agent 自動化閉環已落地LLM 路由紅線升級為 Ollama-first 三主機級聯PChome 後台業績匯入韌性已補強產品定位正名為「PChome 業績成長自動化作戰系統」外部市場來源正規化層、自動同步、作戰清單與價格參考表優先讀取、CSV 備援預檢、前台操作入口、高可見頁面繁中化守門、比價/作戰 UI 工作台化、跨平台來源治理與商品身份 UI 契約已建立GCP embedding 熔斷延後處理、110 proxy rescue 與 direct host health skip 已建立
> **適用版本**: V10.714
> **適用版本**: V10.715
---
@@ -799,3 +799,4 @@ POSTGRES_HOST=momo-db
| 2026-06-26 | 匯入與設定頁不得回吐 raw 後端錯誤 | V10.712 起自動匯入與系統設定頁的未知錯誤 fallback 只顯示使用者可執行的下一步Google Drive、格式、同步與資料處理異常可分類成營運文案但不得把 SQL、snapshot、資料表欄位、driver error 或原始 exception 直接顯示在前台。 |
| 2026-06-26 | 正式容器不得繼承互動式 Google Drive OAuth | V10.713 起 `momo-app``momo-scheduler``momo-telegram-bot``GOOGLE_DRIVE_ALLOW_INTERACTIVE_AUTH` 固定為 `false`,不再允許 `.env` 在主機重啟後把排程帶回瀏覽器 OAuth人工授權只可用一次性腳本完成正式匯入缺 token 時必須 fail-closed 並回可處理訊息。 |
| 2026-06-26 | AI 銷售建議商品區塊必須商品身份優先 | V10.714 起 `/ai_recommend` 熱銷商品參考改為商品卡,後端 bestseller API 回傳平台、商品 ID、賣場連結與圖片欄位前端必須顯示縮圖、平台、商品 ID、價格與開賣場操作缺圖/缺連結需顯示待補狀態,並把商品 ID / URL 帶入銷售建議上下文。 |
| 2026-06-26 | AI 銷售建議前端不得保留 raw content 路徑 | V10.715 起 `/ai_recommend` 只使用已整理的外部訊號摘要與可用線索;搜尋或商品洞察結果若未整理成結構,前端只顯示可理解的待整理狀態,不再把 raw content 當上下文或 fallback 分支保留。 |

View File

@@ -224,6 +224,7 @@ def test_growth_workflow_pages_hide_raw_export_and_fallback_content():
assert "商品判斷尚未整理成可執行摘要" in ai_recommend_js
assert "<pre class=\"mb-0 small\"" not in ai_recommend_js
assert "${escapeHtml(data.raw_content)}" not in ai_recommend_js
assert "raw_content" not in ai_recommend_js
def test_frontend_v2_syncs_latest_momo_pro_prototype_tokens_and_shell():

View File

@@ -799,8 +799,6 @@
webContext += `${i+1}. ${r.title}: ${r.description}\n`;
});
}
} else if (searchData.data.raw_content) {
webContext = `\n\n【外部訊號】\n${searchData.data.raw_content.substring(0, 500)}`;
}
}
@@ -922,7 +920,7 @@
});
html += `</div></div>`;
}
} else if (data.raw_content) {
} else {
html += `<div class="alert alert-warning py-2 mb-0">
<i class="fas fa-triangle-exclamation me-1"></i>
商品判斷尚未整理成可執行摘要;請重新判斷或先補商品名稱與賣場線索。