Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-akm
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangmingming
lcc-akm
Commits
d7aaa0bb
Commit
d7aaa0bb
authored
Mar 22, 2023
by
王明明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加鼠标移动事件
parent
0b90dd19
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
ew.go
src/model/ew.go
+1
-1
nk.go
src/model/nk.go
+1
-1
test.go
src/test/test.go
+9
-9
No files found.
src/model/ew.go
View file @
d7aaa0bb
...
...
@@ -15,7 +15,7 @@ func EW(carrierType, proxyUrl string) (*Akm, error) {
return
nil
,
err
}
for
i
:=
0
;
i
<
3
;
i
++
{
err
:=
akmClient
.
postSensor
Js
(
i
)
err
:=
akmClient
.
postSensor
(
i
)
if
err
!=
nil
{
akmClient
.
logger
.
WithError
(
err
)
.
Errorln
(
"请求失败"
)
return
nil
,
err
...
...
src/model/nk.go
View file @
d7aaa0bb
...
...
@@ -12,7 +12,7 @@ func NK(carrierType, proxyUrl string) (*Akm, error) {
return
nil
,
err
}
for
i
:=
0
;
i
<
4
;
i
++
{
err
:=
akmClient
.
postSensor
Js
(
i
)
err
:=
akmClient
.
postSensor
(
i
)
if
err
!=
nil
{
akmClient
.
logger
.
WithError
(
err
)
.
Errorln
(
"请求失败"
)
return
nil
,
err
...
...
src/test/test.go
View file @
d7aaa0bb
...
...
@@ -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"
,
fals
e
,
"本地调试"
)
Debug
=
flag
.
Bool
(
"debug"
,
tru
e
,
"本地调试"
)
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/"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment