//时间比对 本次循环为60s
        now := time.Now()
        time0900 := time.Date(now.Year(), now.Month(), now.Day(), 9, 0, 0, 0, now.Location())
        time0901 := time.Date(now.Year(), now.Month(), now.Day(), 9, 1, 0, 0, now.Location())
        if now.After(time0900) && now.Before(time0901) {
            MSG := fmt.Sprintf("网站域名: %v \n", domain)
            MSG += fmt.Sprintf("今日PV: %v \n", todayPvCount)
            MSG += fmt.Sprintf("今日uv: %v \n", todayVisitorCount)
            MSG += fmt.Sprintf("今日ip: %v \n", todayIpCount)
            MSG += fmt.Sprintf("昨日PV: %v \n", yesterdayPvCount)
            MSG += fmt.Sprintf("昨日UV: %v \n", yesterdayVisitorCount)
            MSG += fmt.Sprintf("昨日IP: %v \n", yesterdayIpCount)
            thirdpart.SendWechat(MSG)
        }

发表回复

您的电子邮箱地址不会被公开。

Captcha Code