添加测试文件

This commit is contained in:
2026-06-03 12:17:03 +08:00
parent 618bde456a
commit 357343e401
4 changed files with 115 additions and 0 deletions
+4
View File
@@ -127,6 +127,10 @@ 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)}
}
return true, raw, record
}