review code.

This commit is contained in:
2026-05-01 17:07:20 +08:00
parent b3565ac6d7
commit 5673e5c6ca
18 changed files with 359 additions and 208 deletions

View File

@@ -2,6 +2,8 @@ package tushare
import (
"time"
"git.apinb.com/quant/qsdk/conv"
)
/*
@@ -49,7 +51,10 @@ func (cli *TushareClient) ReturnLastTradeDay() string {
return ""
}
cal := result.Map()
return cal[0]["cal_date"].(string)
if len(cal) == 0 {
return ""
}
return conv.AnyToString(cal[0]["cal_date"])
}
/*