|
@@ -37,8 +37,9 @@ func YqCron() {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|
|
- // token := getToken()
|
|
|
|
- // syncBar(token, pastureinfo.Pastureid, pastureinfo.Werks)
|
|
|
|
|
|
+ token := getToken()
|
|
|
|
+ fmt.Println(token)
|
|
|
|
+ syncBar(token, pastureinfo.Pastureid, pastureinfo.Werks)
|
|
c := cron.New()
|
|
c := cron.New()
|
|
c.AddFunc("0 0 1 * * *", func() {
|
|
c.AddFunc("0 0 1 * * *", func() {
|
|
token := getToken()
|
|
token := getToken()
|