From 191a813108c5bce8a36fbbc7c8d6aadd6825a18b Mon Sep 17 00:00:00 2001 From: "zhangkun9038@dingtalk.com" Date: Fri, 27 Dec 2024 12:40:59 +0800 Subject: [PATCH] debug --- candle.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/candle.go b/candle.go index 0940fc8..6f67ae4 100644 --- a/candle.go +++ b/candle.go @@ -270,6 +270,7 @@ func (cl *Candle) ToStruct(core *Core) (*Candle, error) { ncd.InstID = cl.InstID ncd.From = cl.From ncd.LastUpdate = cl.LastUpdate + ncd.Data = cl.Data // 将字符串转换为 int64 类型的时间戳 ts, err := strconv.ParseInt(cl.Data[0].(string), 10, 64) @@ -473,6 +474,7 @@ func (core *Core) GetRangeKeyList(pattern string, from time.Time) ([]*simple.Jso func (cl *Candle) SetToKey(core *Core) ([]interface{}, error) { data := cl.Data tsi, err := strconv.ParseInt(data[0].(string), 10, 64) + tss := strconv.FormatInt(tsi, 10) tm, _ := Int64ToTime(tsi)