From 8060cdb5084701f097a6872a09158fd46a441e3a Mon Sep 17 00:00:00 2001 From: zhaoxiaorong Date: Fri, 11 Apr 2025 17:50:06 +0800 Subject: [PATCH] fix --- oplog/new.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/oplog/new.go b/oplog/new.go index c0e5e72..8393f3f 100644 --- a/oplog/new.go +++ b/oplog/new.go @@ -11,7 +11,10 @@ func New(endpoint string, data []*LogItem) error { return nil } func PostLog(data []*LogItem, endpoint string) (resp *http.Response, err error) { - jsonBytes, err := json.Marshal(data) + request := map[string]any{ + "data": data, + } + jsonBytes, err := json.Marshal(request) if err != nil { return nil, err }