From 578617e458bf4bddc30da5664d318b2f123401ac Mon Sep 17 00:00:00 2001 From: injoyai <1113655791@qq.com> Date: Tue, 30 Sep 2025 11:41:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8C=97=E4=BA=A4=E6=89=80(?= =?UTF-8?q?=E5=8E=86=E5=8F=B2)=E5=88=86=E6=97=B6=E6=88=90=E4=BA=A4?= =?UTF-8?q?=E5=B0=8F10=E5=80=8D=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocol/unit.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/protocol/unit.go b/protocol/unit.go index 7b418a5..d21180b 100644 --- a/protocol/unit.go +++ b/protocol/unit.go @@ -127,11 +127,15 @@ func GetTime(bs [4]byte, Type uint8) time.Time { } func basePrice(code string) Price { - if len(code) == 0 { + if len(code) < 2 { + return 1 + } + switch code[:1] { + case "8": return 1 } switch code[:2] { - case "60", "30", "68", "00": + case "60", "30", "68", "00", "92", "43": return 1 default: return 10