Compare commits

..

No commits in common. "v1" and "v1.0.1" have entirely different histories.
v1 ... v1.0.1

2 changed files with 2 additions and 2 deletions

2
go.mod
View File

@ -1,6 +1,6 @@
module gitea.cdlsxd.cn/self-tools/l_notify module gitea.cdlsxd.cn/self-tools/l_notify
go 1.21 go 1.23.6
require ( require (
gitea.cdlsxd.cn/self-tools/l_request v1.0.4 // indirect gitea.cdlsxd.cn/self-tools/l_request v1.0.4 // indirect

View File

@ -48,7 +48,7 @@ func (n *Notify) next() {
} }
time := "@every " + fmt.Sprintf("%ds", n.DelayList[n.i]) time := "@every " + fmt.Sprintf("%ds", n.DelayList[n.i])
n.currenEntry, _ = n.cron.AddFunc(time, func() { n.currenEntry, _ = n.cron.AddFunc(time, func() {
e := n.ResultHandle(n.Request.Send()) e := n.ResultHandle(n.DoFuc())
if n.isLoop { if n.isLoop {
//循环推送直到成功 //循环推送直到成功
if e { if e {