mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
feat(data):从雪球接口获取财务数据并优化表格解析
- 新增 GetFinancialReportsByXUEQIU 函数,用于从雪球获取财务报告 - 优化 GetTableMarkdown 函数,改进表格解析逻辑 - 更新测试用例,验证新接口的正确性- 重构原有 GetFinancialReports函数,提高代码可维护性
This commit is contained in:
parent
ece40d1fc0
commit
51cc21107a
@ -284,7 +284,6 @@ func (o OpenAi) NewChatStream(stock, stockCode, userQuestion string, sysPromptId
|
||||
if checkIsIndexBasic(stock) {
|
||||
return
|
||||
}
|
||||
|
||||
messages := GetFinancialReportsByXUEQIU(stockCode, o.CrawlTimeOut)
|
||||
if messages == nil || len(*messages) == 0 {
|
||||
logger.SugaredLogger.Error("获取股票财报失败")
|
||||
|
Loading…
x
Reference in New Issue
Block a user