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
444dbcac
Commit
444dbcac
authored
Mar 09, 2023
by
王明明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
超时处理
parent
9e13dd50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
init.go
src/model/init.go
+1
-1
test.go
src/test.go
+1
-1
No files found.
src/model/init.go
View file @
444dbcac
...
...
@@ -20,7 +20,7 @@ func routeToU2(w http.ResponseWriter, r *http.Request) {
carrierType
:=
data
[
"type"
]
var
akm
*
Akm
switch
carrierType
{
case
"
u
2"
:
case
"
U
2"
:
akm
=
EasyJet
(
carrierType
.
(
string
),
data
[
"proxy"
]
.
(
string
))
default
:
util
.
WriteJson
(
w
,
util
.
ErrorJson
(
"不支持的航司"
))
...
...
src/test.go
View file @
444dbcac
...
...
@@ -76,7 +76,7 @@ func main() {
//resp, err := http.Get("http://127.0.0.1:9999/ping")
//resp, err := http.Post("http://lcc.unififi.com/proxy/get-proxy", "application/json", strings.NewReader("{\n \"name\": \"NK\",\n \"type\": \"shopping\"\n}"))
t1
:=
time
.
Now
()
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
\"
}"
))
resp
,
err
:=
http
.
Post
(
"http://
lcc.unififi.com
/akamai/gen"
,
"application/json"
,
strings
.
NewReader
(
"{
\"
type
\"
:
\"
u2
\"
,
\"
proxy
\"
:
\"
http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600
\"
}"
))
if
err
!=
nil
{
//panic(err)
fmt
.
Println
(
err
)
...
...
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