From 260bd12ec8425a125a373190b081a83a5fdb7f47 Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 20 Jun 2026 12:24:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=87=8D=E5=A4=8D=E6=B6=88?= =?UTF-8?q?=E6=81=AFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/store/llm_store.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/internal/store/llm_store.go b/internal/store/llm_store.go index 3bf2a8d..9fde4a9 100644 --- a/internal/store/llm_store.go +++ b/internal/store/llm_store.go @@ -505,10 +505,9 @@ func enqueueChannelMessageToLLM(s *Store, record map[string]any) error { fromNodeNum = 0 } - var packetID int64 - if p, ok := record["packet_id"].(float64); ok { - packetID = int64(p) - } + // record 来自 describePacket 直接构造的 map,packet_id 是 uint32, + // 并未经过 JSON 往返(不会变成 float64),必须用类型安全的转换兜底各种整型。 + packetID, _ := int64FromAny(record["packet_id"]) topic, _ := record["topic"].(string)