From 4e228e53532d612be10a1a47d879aad1bdea03eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=B1=E7=BA=AF=E5=87=80?= <1113655791@qq.com> Date: Thu, 14 Nov 2024 23:31:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8D=E5=90=8CK=E7=BA=BF?= =?UTF-8?q?=E7=9A=84=E6=97=A5=E6=9C=9F=E9=9C=80=E8=A6=81=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E4=B8=8D=E5=90=8C=E7=9A=84=E5=A4=84=E7=90=86,=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=B7=B2=E5=85=A8=E9=83=A8=E6=A0=A1=E5=AF=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocol/unit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/unit.go b/protocol/unit.go index 9ddda2c..54094fe 100644 --- a/protocol/unit.go +++ b/protocol/unit.go @@ -102,7 +102,7 @@ func GetHourMinute(bs [2]byte) string { func GetTime(bs [4]byte, Type uint8) time.Time { switch Type { - case TypeKlineDay2, TypeKlineMinute, TypeKlineMinute2: + case TypeKlineMinute, TypeKlineMinute2, TypeKline5Minute, TypeKline15Minute, TypeKline30Minute, TypeKlineHour: yearMonthDay := Uint16(bs[:2]) hourMinute := Uint16(bs[2:4])