diff options
Diffstat (limited to 'models/webhook_dingtalk.go')
-rw-r--r-- | models/webhook_dingtalk.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/models/webhook_dingtalk.go b/models/webhook_dingtalk.go index e910ede7..99b623cc 100644 --- a/models/webhook_dingtalk.go +++ b/models/webhook_dingtalk.go @@ -5,10 +5,11 @@ package models import ( - "encoding/json" "fmt" "strings" + "github.com/json-iterator/go" + "github.com/gogs/git-module" api "github.com/gogs/go-gogs-client" ) @@ -41,7 +42,7 @@ type DingtalkPayload struct { } func (p *DingtalkPayload) JSONPayload() ([]byte, error) { - data, err := json.MarshalIndent(p, "", " ") + data, err := jsoniter.MarshalIndent(p, "", " ") if err != nil { return []byte{}, err } |