Commit bdc8be2b authored by 王明明's avatar 王明明

改写

parent 66c12e7b
...@@ -149,17 +149,9 @@ func EasyJet() *Akm { ...@@ -149,17 +149,9 @@ func EasyJet() *Akm {
akmClient.SensorUrl = initAbck(url) akmClient.SensorUrl = initAbck(url)
GetAbck(0, "https://www.easyjet.com/en/buy/flights?isOneWay=on&pid=www.easyjet.com") GetAbck(0, "https://www.easyjet.com/en/buy/flights?isOneWay=on&pid=www.easyjet.com")
GetAbck(1, "https://www.easyjet.com/en/buy/flights?isOneWay=on&pid=www.easyjet.com") GetAbck(1, "https://www.easyjet.com/en/buy/flights?isOneWay=on&pid=www.easyjet.com")
respCk := GetAbck(2, "https://www.easyjet.com/en/buy/flights?isOneWay=on&pid=www.easyjet.com") GetAbck(2, "https://www.easyjet.com/en/buy/flights?isOneWay=on&pid=www.easyjet.com")
abck, bm_sz := GetCookie()
for _, v := range respCk {
if v.Name == "_abck" {
abck = v.Value
}
}
akm := &Akm{ akm := &Akm{
Abck: abck,
Bmsz: bm_sz,
Cookies: GetAllCookie(), Cookies: GetAllCookie(),
Ua: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.50", Ua: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.50",
} }
......
...@@ -68,7 +68,7 @@ func main() { ...@@ -68,7 +68,7 @@ func main() {
t1 := time.Now() t1 := time.Now()
fmt.Println(t1) fmt.Println(t1)
wg := sync.WaitGroup{} wg := sync.WaitGroup{}
for i := 0; i < 2; i++ { for i := 0; i < 1; i++ {
wg.Add(1) wg.Add(1)
go func() { go func() {
defer wg.Done() defer wg.Done()
......
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 to comment