fix(go): merge realtime raw arrays by serial

This commit is contained in:
lingniu
2026-07-02 15:48:14 +08:00
parent f3b4cbbbb2
commit f4335641db
2 changed files with 68 additions and 1 deletions

View File

@@ -364,7 +364,7 @@ func asAnySlice(value any) ([]any, bool) {
}
func mergeSliceKey(item map[string]any) string {
for _, key := range []string{"name", "type", "id"} {
for _, key := range []string{"name", "type", "id", "serial_no"} {
if value, ok := item[key]; ok {
text := strings.TrimSpace(strconvAny(value))
if text != "" {