123456789101112131415161718192021222324252627282930313233343536 |
- package main
-
- import (
- "SCRM/jobcron"
- _ "SCRM/routers"
- "SCRM/service"
-
- "SCRM/service/site_service"
- "github.com/astaxie/beego"
- )
-
- func init() {
- service.ConnectDB()
- }
-
- func main() {
-
- //微信开放平台
- go func() {
- // jobcron.RequestComponentAccessToken()
- // jobcron.RequestMpWechatAccessToken()
- // jobcron.ReqJsapiTicket()
- }()
-
- jobcron.StartOpenWechatCron()
- jobcron.BeginSendUnsendSMSCronJob()
-
- jobcron.CreateActivityShortURLIfNeeded()
- jobcron.BeginCreateActivityShortURLCronJob()
-
- go jobcron.RequestQNToken()
- jobcron.BeginRerequestQNTokenCronJob()
- site_service.BeginAutoCreateDefalutData()
- beego.Run()
- }
|