forked from silie666/sina_luck_draw
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
38 lines (35 loc) · 768 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package main
import (
"sina/function"
"time"
)
func main() {
//先获取信息
//function.GetSinaLuckingApi()
//function.GetSinaLucking()
//ticker1 := time.NewTicker(time.Minute * 1)
//ticker2 := time.NewTicker(time.Minute * 2)
//ticker3 := time.NewTicker(time.Hour * 24)
//ticker4 := time.NewTicker(time.Minute * 30)
//for {
// select {
// case <-ticker1.C:
// function.GetLuckSearchApi()
// case <-ticker2.C:
// function.GetSinaLuckingApi()
// case <-ticker3.C:
// function.GetSinaLucking()
// case <-ticker4.C:
// function.FollowSet()
// function.HuaTiZhuanFa()
// function.LikeSet()
// }
//}
for {
time.Sleep(5*time.Minute)
function.GetLuckSearchApi()
function.FollowSet()
function.HuaTiZhuanFa()
function.LikeSet()
}
}