Commit 236b365d by 朱继来

调整

parent 76032385
Showing with 6 additions and 3 deletions
......@@ -53,10 +53,10 @@ func main() {
initDb("Init", util.Configs.Liexin_databases.Dns)
initDb("InitCmsDB", util.Configs.Liexincms_databases.Dns)
forever := make(chan bool)
fmt.Println("执行完成后, 按 CTRL+C 退出程序...")
if StartTime != "" && EndTime != "" { // 开始时间和结束时间都存在
forever := make(chan bool)
fmt.Println("执行完成后, 按 CTRL+C 退出程序...")
diff_day := handle.GetDiffDay(StartTime, EndTime)
// 开始日期时间戳
......@@ -77,6 +77,9 @@ func main() {
<-forever
} else if StartTime != "" { // 仅存在开始时间
forever := make(chan bool)
fmt.Println("执行完成后, 按 CTRL+C 退出程序...")
// 开始日期时间戳
start, _ := time.ParseInLocation("2006-01-02", StartTime, time.Local)
start_time := start.Unix()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment