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

添加鼠标移动事件

parent 0b90dd19
......@@ -15,7 +15,7 @@ func EW(carrierType, proxyUrl string) (*Akm, error) {
return nil, err
}
for i := 0; i < 3; i++ {
err := akmClient.postSensorJs(i)
err := akmClient.postSensor(i)
if err != nil {
akmClient.logger.WithError(err).Errorln("请求失败")
return nil, err
......
......@@ -12,7 +12,7 @@ func NK(carrierType, proxyUrl string) (*Akm, error) {
return nil, err
}
for i := 0; i < 4; i++ {
err := akmClient.postSensorJs(i)
err := akmClient.postSensor(i)
if err != nil {
akmClient.logger.WithError(err).Errorln("请求失败")
return nil, err
......
......@@ -134,8 +134,8 @@ func actVY() {
px = "http://127.0.0.1:8890"
}
t1 := time.Now()
resp, err := http.Post("http://lcc.unififi.com/akamai/gen",
//resp, err := http.Post("http://127.0.0.1:59001/akamai/gen",
//resp, err := http.Post("http://lcc.unififi.com/akamai/gen",
resp, err := http.Post("http://127.0.0.1:59001/akamai/gen",
"application/json", strings.NewReader("{\"type\": \"VY\", \"proxy\": \""+px+"\"}"))
//"application/json", strings.NewReader("{\"type\": \"VY\", \"proxy\": \"http://127.0.0.1:8890\"}"))
//resp, err := http.Post("http://127.0.0.1:59001/akamai/gen", "application/json", strings.NewReader("{\"type\": \"u2\", \"proxy\": \"http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600\"}"))
......@@ -168,7 +168,7 @@ func actnk() {
var Debug *bool
func main() {
Debug = flag.Bool("debug", false, "本地调试")
Debug = flag.Bool("debug", true, "本地调试")
flag.Parse()
for i := 0; i < 1; i++ {
t1 := time.Now()
......@@ -178,12 +178,12 @@ func main() {
wg.Add(1)
go func() {
defer wg.Done()
//fmt.Println("开始vytest")
//actVY()
fmt.Println("开始vytest")
actVY()
//fmt.Println("开始u2test")
//actU2()
fmt.Println("开始NKtest")
actnk()
//fmt.Println("开始NKtest")
//actnk()
}()
}
......@@ -206,8 +206,8 @@ func testVY(px string, data []byte) {
tls_client.WithTimeoutSeconds(30),
tls_client.WithClientProfile(tls_client.Chrome_110),
tls_client.WithCookieJar(jar), // create cookieJar instance and pass it as argument
tls_client.WithProxyUrl("http://127.0.0.1:8890"),
//tls_client.WithProxyUrl(px),
//tls_client.WithProxyUrl("http://127.0.0.1:8890"),
tls_client.WithProxyUrl(px),
tls_client.WithInsecureSkipVerify(),
}
uri, _ := url.Parse("https://m.vueling.com/")
......
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