diff --git a/internal/pkg/eventListener/eventListener.go b/internal/pkg/eventListener/eventListener.go index 85bcacb..85bc825 100644 --- a/internal/pkg/eventListener/eventListener.go +++ b/internal/pkg/eventListener/eventListener.go @@ -48,7 +48,6 @@ func GitHubWebHook(c *gin.Context) { body, _ := ioutil.ReadAll(c.Request.Body) bodyStr := string(body) - bodyStr = bodyStr[8:] bodyStr, _ = url.QueryUnescape(bodyStr) gitHubEvent := Event(event) diff --git a/internal/pkg/pushChannel/lark/callback.go b/internal/pkg/pushChannel/lark/callback.go index 9c735b4..94cbd18 100644 --- a/internal/pkg/pushChannel/lark/callback.go +++ b/internal/pkg/pushChannel/lark/callback.go @@ -48,7 +48,7 @@ func Callback(c *gin.Context) { // 发送消息 var groupIdMsg string - if messageCallBackResp.Event.Message.Content == "{\"text\":\"ID\"}" { + if messageCallBackResp.Event.Message.Content == "{\"text\":\"@_user_1\"}" { t := fasttemplate.New(messageTemplate.SendIdMsg, "{{", "}}") groupIdMsg = t.ExecuteString(map[string]interface{}{ "ChatID": messageCallBackResp.Event.Sender.SenderID.OpenID,