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