File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ func GitHubWebHook(c *gin.Context) {
48
48
49
49
body , _ := ioutil .ReadAll (c .Request .Body )
50
50
bodyStr := string (body )
51
- bodyStr = bodyStr [8 :]
52
51
bodyStr , _ = url .QueryUnescape (bodyStr )
53
52
54
53
gitHubEvent := Event (event )
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ func Callback(c *gin.Context) {
48
48
49
49
// 发送消息
50
50
var groupIdMsg string
51
- if messageCallBackResp .Event .Message .Content == "{\" text\" :\" ID \" }" {
51
+ if messageCallBackResp .Event .Message .Content == "{\" text\" :\" @_user_1 \" }" {
52
52
t := fasttemplate .New (messageTemplate .SendIdMsg , "{{" , "}}" )
53
53
groupIdMsg = t .ExecuteString (map [string ]interface {}{
54
54
"ChatID" : messageCallBackResp .Event .Sender .SenderID .OpenID ,
You can’t perform that action at this time.
0 commit comments