Skip to content

Commit

Permalink
bug
Browse files Browse the repository at this point in the history
  • Loading branch information
daxx-xx committed Jul 24, 2023
1 parent 7c84e4b commit 0f80bfb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion internal/pkg/eventListener/eventListener.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion internal/pkg/pushChannel/lark/callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0f80bfb

Please sign in to comment.