mirror of
https://github.com/ArvinLovegood/go-stock.git
synced 2025-07-19 00:00:09 +08:00
refactor(data):添加chromedriver路径日志输出
- 在 GetFinancialReports、SearchStockPriceInfo 和 SearchStockInfo 函数中添加了 chromedriver 路径的日志输出 - 有助于调试和验证 chromedriver 的正确路径,确保自动化任务顺利进行
This commit is contained in:
parent
70ee9df22a
commit
37e63538e2
@ -296,6 +296,8 @@ func GetFinancialReports(stockCode string) *[]string {
|
||||
var ctx context.Context
|
||||
var cancel context.CancelFunc
|
||||
path, e := checkEdgeOnWindows()
|
||||
logger.SugaredLogger.Infof("GetFinancialReports path:%s", path)
|
||||
|
||||
if e {
|
||||
pctx, pcancel := chromedp.NewExecAllocator(
|
||||
timeoutCtx,
|
||||
|
@ -525,6 +525,7 @@ func SearchStockPriceInfo(stockCode string) *[]string {
|
||||
var ctx context.Context
|
||||
var cancel context.CancelFunc
|
||||
path, e := checkEdgeOnWindows()
|
||||
logger.SugaredLogger.Infof("SearchStockPriceInfo path:%s", path)
|
||||
if e {
|
||||
pctx, pcancel := chromedp.NewExecAllocator(
|
||||
timeoutCtx,
|
||||
@ -614,6 +615,8 @@ func SearchStockInfo(stock, msgType string) *[]string {
|
||||
var ctx context.Context
|
||||
var cancel context.CancelFunc
|
||||
path, e := checkEdgeOnWindows()
|
||||
logger.SugaredLogger.Infof("SearchStockInfo path:%s", path)
|
||||
|
||||
if e {
|
||||
pctx, pcancel := chromedp.NewExecAllocator(
|
||||
timeoutCtx,
|
||||
|
Loading…
x
Reference in New Issue
Block a user