main.go 272B

1234567891011121314151617181920212223
  1. package main
  2. import (
  3. "Kya_New/jobcron"
  4. _ "Kya_New/routers"
  5. "Kya_New/service"
  6. "github.com/astaxie/beego"
  7. )
  8. func init() {
  9. service.ConnectDB()
  10. }
  11. func main() {
  12. go func() {
  13. }()
  14. go jobcron.RequestQNToken()
  15. jobcron.BeginRerequestTwoQNTokenCronJob()
  16. beego.Run()
  17. }