feat: now user are able to configure channels

This commit is contained in:
JustSong
2022-11-22 17:52:44 +08:00
parent e911c3fb7c
commit 2acc56e03c
10 changed files with 470 additions and 32 deletions
+4
View File
@@ -22,6 +22,10 @@ func GetPushMessage(c *gin.Context) {
// Keep compatible with ServerChan
message.Description = c.Query("desp")
}
if message.Channel == "" {
// Keep compatible with old version
message.Channel = c.Query("type")
}
pushMessageHelper(c, &message)
}