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