change run page time
This commit is contained in:
parent
87db887072
commit
50b0983831
@ -9,7 +9,7 @@ var c *cron.Cron
|
|||||||
// SetBackground -
|
// SetBackground -
|
||||||
func SetBackground() {
|
func SetBackground() {
|
||||||
c = cron.New()
|
c = cron.New()
|
||||||
c.AddFunc("0 */2 * * * *", readFacebookPage)
|
c.AddFunc("0 * * * * *", readFacebookPage)
|
||||||
c.AddFunc("*/20 * * * * *", getStreamStatus)
|
c.AddFunc("*/20 * * * * *", getStreamStatus)
|
||||||
c.AddFunc("*/5 * * * * *", checkOpay)
|
c.AddFunc("*/5 * * * * *", checkOpay)
|
||||||
c.AddFunc("0 0 */3 * * *", checkYoutubeSubscribe)
|
c.AddFunc("0 0 */3 * * *", checkYoutubeSubscribe)
|
||||||
|
@ -49,6 +49,7 @@ func readFacebookPage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getPageHTML(page *model.FacebookPage) {
|
func getPageHTML(page *model.FacebookPage) {
|
||||||
|
fmt.Println("run page ::::: ", page.ID)
|
||||||
err := page.GetGroups()
|
err := page.GetGroups()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("get page group err ", err)
|
fmt.Println("get page group err ", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user