Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
seangong committed Sep 16, 2022
1 parent 1248895 commit 2250a8c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ func main() {
router := gin.Default()
router.POST("/webhook", func(c *gin.Context) {
var notification model.Notification

err := c.BindJSON(&notification)

if err != nil {
Expand All @@ -43,7 +42,6 @@ func main() {
}

RobotKey := c.DefaultQuery("key", RobotKey)

err = api.Send(notification, RobotKey)

if err != nil {
Expand All @@ -52,7 +50,6 @@ func main() {
}

c.JSON(http.StatusOK, gin.H{"message": "send to wechatbot successful!"})

})
router.Run(addr)
}

0 comments on commit 2250a8c

Please sign in to comment.