diff --git a/pages/deepMate/deepMate.vue b/pages/deepMate/deepMate.vue index c75f4d3..acca0a5 100644 --- a/pages/deepMate/deepMate.vue +++ b/pages/deepMate/deepMate.vue @@ -632,6 +632,10 @@ const simulateBotResponse = async (userMessage) => { console.log('postStock payload', { language: 'cn', token: '790750702588f1ea79f24dc56ccd5d8a', recordId, parentId, stockId }); console.log('StockInfo', StockInfo); + const cftl = StockInfo?.cftl || {}; + const date = StockInfo?.date || ''; + + if (StockInfo && StockInfo.code !== 200) { const errMsg = `postStock失败(${StockInfo.code}): ${StockInfo.message || '未知错误'}` console.warn(errMsg, StockInfo) @@ -642,8 +646,8 @@ const simulateBotResponse = async (userMessage) => { return } - const markdown = StockInfo.markdown; - console.log("StockInfo", StockInfo); + const markdown = StockInfo?.data?.markdown || '抱歉,未找到该股票'; + console.log('StockInfo', StockInfo); // 添加请求延迟 // const toDataInfo = await getData();