🎨 新增手动触发接口

This commit is contained in:
loser 2024-04-02 15:09:31 +08:00
parent 4bb385b766
commit 8aa2b355d9

View File

@ -55,8 +55,7 @@ func Routers() *gin.Engine {
r.OkWithData(len(jobs), c) r.OkWithData(len(jobs), c)
}) })
PublicGroup.GET("/task/send", func(c *gin.Context) { PublicGroup.GET("/task/send", func(c *gin.Context) {
tag, _ := task.WxTask.FindJobsByTag("sendMsg") task.SendMsg2User()
r.OkWithData(tag[0].NextRun(), c)
}) })
} }