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
bdc8be2b
Commit
bdc8be2b
authored
Mar 08, 2023
by
王明明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改写
parent
66c12e7b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
easyjet.go
model/easyjet.go
+1
-9
test.go
test/test.go
+1
-1
No files found.
model/easyjet.go
View file @
bdc8be2b
...
@@ -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"
,
}
}
...
...
test/test.go
View file @
bdc8be2b
...
@@ -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
()
...
...
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