Skip to content

Commit

Permalink
小小的修改一下cron表达式 (#77)
Browse files Browse the repository at this point in the history
* fix:小修一下表达式

* fix:小修一下表达式
  • Loading branch information
guohuiyuan authored Nov 22, 2021
1 parent d6f1113 commit bcd111f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugin_bilibili/fansDaily.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func init() {
// 定时任务每天晚上最后2分钟执行一次
func fansDaily(groupID int64) {
c := cron.New()
_, err := c.AddFunc("0 58 23 * * ?", func() { fansData(groupID) })
_, err := c.AddFunc("58 23 * * *", func() { fansData(groupID) })
if err == nil {
c.Start()
}
Expand Down
2 changes: 1 addition & 1 deletion plugin_vtb_quotation/cron.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func init() {
func vtbDaily() {
log.Println("创建vtb数据库定时任务")
c := cron.New()
_, err := c.AddFunc("37 11 * * *", func() { vtbData() })
_, err := c.AddFunc("0 4 * * *", func() { vtbData() })
if err != nil {
log.Println("定时任务有错误:", err)
} else {
Expand Down

0 comments on commit bcd111f

Please sign in to comment.