Skip to content

Commit 0f80bfb

Browse files
committed
bug
1 parent 7c84e4b commit 0f80bfb

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

internal/pkg/eventListener/eventListener.go

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ func GitHubWebHook(c *gin.Context) {
4848

4949
body, _ := ioutil.ReadAll(c.Request.Body)
5050
bodyStr := string(body)
51-
bodyStr = bodyStr[8:]
5251
bodyStr, _ = url.QueryUnescape(bodyStr)
5352

5453
gitHubEvent := Event(event)

internal/pkg/pushChannel/lark/callback.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func Callback(c *gin.Context) {
4848

4949
// 发送消息
5050
var groupIdMsg string
51-
if messageCallBackResp.Event.Message.Content == "{\"text\":\"ID\"}" {
51+
if messageCallBackResp.Event.Message.Content == "{\"text\":\"@_user_1\"}" {
5252
t := fasttemplate.New(messageTemplate.SendIdMsg, "{{", "}}")
5353
groupIdMsg = t.ExecuteString(map[string]interface{}{
5454
"ChatID": messageCallBackResp.Event.Sender.SenderID.OpenID,

0 commit comments

Comments
 (0)