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) {
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 )
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments