master
修改密码漏洞修复完成 8 months ago
parent 0527470ae0
commit 30fab13db3

@ -98,13 +98,14 @@ func initSession() {
} }
func initCron() { func initCron() {
c := cron.New() //c := cron.New()
spec := beego.AppConfig.String("syncFrequency") //spec := beego.AppConfig.String("syncFrequency")
c.AddFunc(spec, func() { //c.AddFunc(spec, func() {
httpService := new(service.HttpService) // httpService := new(service.HttpService)
httpService.GetActivityTyhoon() // httpService.GetActivityTyhoon()
}) //})
c.Start() //c.Start()
fmt.Println("storm initCron")
} }
func initCronWeather() { func initCronWeather() {

@ -16,18 +16,19 @@ httpport = 8084
#mysqlmaxConn = 300 #mysqlmaxConn = 300
SessionName = "beegosessionID" SessionName = "beegosessionID"
syncFrequency = "0 */10 * * * *" syncFrequency = "0 10 * * * *"
syncFrequencyWeather = "0 16 * * * *" syncFrequencyWeather = "0 16 * * * *"
# syncFrequencyWeather = "0 9 * * * *" # syncFrequencyWeather = "0 9 * * * *"
# syncFrequency = "0 */10 * * * *"
mysqluser = "root" mysqluser = "root"
mysqlpass = "Skyinno251," mysqlpass = "Skyinno251,"
#mysqlurls = "192.168.3.29:3306"
mysqlurls = "127.0.0.1:3306" mysqlurls = "127.0.0.1:3306"
mysqldb = "weather" mysqldb = "disruptor_nmc"
# mysqlurls = "192.168.2.18:3306"
mysqlparams = "charset=utf8mb4&parseTime=True&loc=Local" mysqlparams = "charset=utf8mb4&parseTime=True&loc=Local"

Loading…
Cancel
Save