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
671fb383
Commit
671fb383
authored
Mar 07, 2023
by
anqi-wmm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产 sensor_data
parent
acf9c7ff
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
156 additions
and
4 deletions
+156
-4
main.go
main.go
+4
-4
sensor.go
sensor/sensor.go
+152
-0
No files found.
main.go
View file @
671fb383
...
...
@@ -34,8 +34,8 @@ func NewAkmClient() *AkmClient {
if
err
!=
nil
{
log
.
Println
(
err
)
}
client
.
SetProxy
(
"http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600"
)
//client.SetProxy("http://127.0.0.1:8888
")
//
client.SetProxy("http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600")
client
.
SetProxy
(
"http://127.0.0.1:9999
"
)
return
&
AkmClient
{
Jar
:
jar
,
Client
:
client
}
}
...
...
@@ -95,8 +95,8 @@ func initAbck(url string) {
},
}
resp
,
err
:
=
akmClient
.
Client
.
Do
(
req
)
defer
resp
.
Body
.
Close
()
_
,
err
=
akmClient
.
Client
.
Do
(
req
)
//
defer resp.Body.Close()
if
err
!=
nil
{
log
.
Println
(
err
)
...
...
sensor/sensor.go
0 → 100644
View file @
671fb383
This diff is collapsed.
Click to expand it.
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