Browse Source

Merge branch 'milestone-20251031-简版功能开发' of http://39.101.133.168:8807/qimaohong/deepChartVueApp into wangyi/feature-20251026183100-deepmate王毅

lihuilin/feature-20251024095243-我的
Ethereal 4 weeks ago
parent
commit
4ac542ccf6
  1. 38
      pages/deepMate/deepMate.vue
  2. 2
      utils/http.js

38
pages/deepMate/deepMate.vue

@ -640,7 +640,7 @@ const simulateBotResponse = async (userMessage) => {
scrollToBottom();
//
const baseDelay = 5; //
const baseDelay = 165; //
const slowPunct = /[。!?!?;;]/; //
const midPunct = /[,、,::]/; //
const delay = slowPunct.test(ch)
@ -675,21 +675,31 @@ const simulateBotResponse = async (userMessage) => {
//
const StockInfo = await postStock({
recordId: recordId,
parentId: parentId,
stockId: stockId,
token:
"pCtw6AYK0EHAaIexoFHsbZjtsfEAIhcmwkCFm6uKko8VPfMvyDiODL9v9c0veic9fIpQbvT8zN4sH/Si6Q",
language: "cn",
language: 'cn',
token: 'pCtw6AYK0EHAaIexoFHsbZjtsfEAIhcmwkCFm6uKko8VPfMvyDiODL9v9c0veic9fIpQbvT8zN4sH/Si6Q',
recordId: Number(recordId),
parentId: Number(parentId),
stockId: Number(stockId),
});
console.log("StockInfo", StockInfo);
// if (StockInfo.code !== 200) {
// return ;
// }
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)
messages.value[messages.value.length - 1].isThinking = false
messages.value[messages.value.length - 1].isTyping = false
messages.value[messages.value.length - 1].content = errMsg
isSending.value = false
return
}
const markdown = StockInfo.data.markdown;
console.log("StockInfo", StockInfo);
const markdown = StockInfo?.data?.markdown || '抱歉,未找到该股票';
console.log('StockInfo', StockInfo);
//
// const toDataInfo = await getData();

2
utils/http.js

@ -32,7 +32,7 @@ const httpInterceptor = {
'source-client': 'miniapp',
// 标准头与文档头同时设置,确保兼容
'content-type': 'application/json',
// 'contentType': 'application/json',
'contentType': 'application/json',
'version': '1',
'client': client
}

Loading…
Cancel
Save