基本功能差不多完成

This commit is contained in:
2026-06-04 09:52:57 +08:00
parent c441fed1b3
commit f73d79b7d4
15 changed files with 395 additions and 14 deletions
+2 -1
View File
@@ -128,7 +128,8 @@ func MQTTPP(topic string, raw []byte, key []byte) (bool, []byte, map[string]any)
return false, nil, map[string]any{"topic": topic, "error": err.Error(), "payload_len": len(raw)}
}
if record["type"] == "encrypted_packet" {
return false, nil, map[string]any{"topic": topic, "error": "cannot be decrypted", "payload_len": len(raw)}
record["error"] = "cannot be decrypted"
return false, nil, record
}
return true, raw, record