From f6811aca01e6ecaceaa1f741ee502d2564303ffd Mon Sep 17 00:00:00 2001 From: injoyai <1113655791@qq.com> Date: Fri, 21 Feb 2025 09:37:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=86=E5=A4=87=E5=A2=9E=E5=8A=A0=E6=8C=87?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocol/model_kline.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/protocol/model_kline.go b/protocol/model_kline.go index 6b891d0..92667c7 100644 --- a/protocol/model_kline.go +++ b/protocol/model_kline.go @@ -5,7 +5,6 @@ import ( "fmt" "github.com/injoyai/base/g" "github.com/injoyai/conv" - "github.com/injoyai/logs" "time" ) @@ -118,11 +117,10 @@ func (kline) Decode(bs []byte, Type uint8) (*KlineResp, error) { } bs = bs[2:] - logs.Debug(len(bs)) //264 10 237 9 + //logs.Debug(len(bs)) //264 10 237 9 var last Price //上条数据(昨天)的收盘价 for i := uint16(0); i < resp.Count; i++ { - logs.Debug(bs[:4]) k := &Kline{ Time: GetTime([4]byte(bs[:4]), Type), } @@ -167,7 +165,7 @@ func (kline) Decode(bs []byte, Type uint8) (*KlineResp, error) { bs = bs[4:] //指数和股票的差别bs[12:] - if true { + if false { k.UpCount = conv.Int([]byte{bs[1], bs[0]}) k.DownCount = conv.Int([]byte{bs[3], bs[2]}) bs = bs[4:]