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
b4001da5
Commit
b4001da5
authored
Mar 14, 2023
by
anqi-wmm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产 sensor_data
测试成功
parent
ee6c783c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
easyjet.go
src/model/easyjet.go
+2
-2
structs.go
src/model/structs.go
+5
-0
No files found.
src/model/easyjet.go
View file @
b4001da5
...
...
@@ -23,7 +23,7 @@ type AkmClient struct {
logger
*
logrus
.
Entry
}
func
NewAkmClient
(
proxyUrl
string
,
logger
*
logrus
.
Entry
)
*
AkmClient
{
func
NewAkmClient
(
initUrl
,
postUrl
,
proxyUrl
string
,
logger
*
logrus
.
Entry
)
*
AkmClient
{
jar
:=
tls_client
.
NewCookieJar
()
options
:=
[]
tls_client
.
HttpClientOption
{
tls_client
.
WithTimeoutSeconds
(
30
),
...
...
@@ -179,7 +179,7 @@ func (c *AkmClient) init() error {
func
EasyJet
(
carrierType
,
proxyUrl
string
)
*
Akm
{
logger
:=
logrus
.
WithField
(
"typoe"
,
carrierType
)
logger
.
Info
(
"使用代理"
,
proxyUrl
)
akmClient
:=
NewAkmClient
(
proxyUrl
,
logger
)
akmClient
:=
NewAkmClient
(
U2Url
,
U2Url
,
proxyUrl
,
logger
)
akmClient
.
init
()
logger
.
Info
(
"请求sensor url:"
,
akmClient
.
SensorUrl
)
if
akmClient
.
SensorUrl
==
""
{
...
...
src/model/structs.go
View file @
b4001da5
...
...
@@ -6,3 +6,8 @@ type Akm struct {
Cookies
map
[
string
]
string
`json:"cookies"`
Ua
string
`json:"ua"`
}
const
(
U2Url
=
"https://www.easyjet.com/en"
VYUrl
=
"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