change run page time

This commit is contained in:
Jay 2018-09-21 08:42:20 +08:00
parent 87db887072
commit 50b0983831
2 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@ var c *cron.Cron
// SetBackground -
func SetBackground() {
c = cron.New()
c.AddFunc("0 */2 * * * *", readFacebookPage)
c.AddFunc("0 * * * * *", readFacebookPage)
c.AddFunc("*/20 * * * * *", getStreamStatus)
c.AddFunc("*/5 * * * * *", checkOpay)
c.AddFunc("0 0 */3 * * *", checkYoutubeSubscribe)

View File

@ -49,6 +49,7 @@ func readFacebookPage() {
}
func getPageHTML(page *model.FacebookPage) {
fmt.Println("run page ::::: ", page.ID)
err := page.GetGroups()
if err != nil {
fmt.Println("get page group err ", err)