fixed lots of bugs

This commit is contained in:
2026-09-07 20:44:56 +08:00
parent 66235cf663
commit d0f0120271
30 changed files with 2442 additions and 212 deletions

View File

@@ -45,7 +45,7 @@ func Encode(message string, data map[string]any) ([]byte, error) {
msg := mt.New().Interface()
// map → json → proto
jsonBytes, _ := json.Marshal(data)
jsonBytes, _ := json.MarshalIndent(data, "", " ")
if err := protojson.Unmarshal(jsonBytes, msg); err != nil {
return nil, err
}