Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-reese84
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-reese84
Commits
aabfa62a
Commit
aabfa62a
authored
Jun 26, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
1b505ca3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
main.py
src/main.py
+3
-3
test_tmx.py
test_tmx.py
+2
-2
No files found.
src/main.py
View file @
aabfa62a
...
...
@@ -22,14 +22,14 @@ if not pathlib.Path('nacos-data/snapshot/').exists():
def
check_pull
():
get_url
=
'http://
ymx
-lcc.unififi.com/header/task/pull/cookiePR?brush_name=test'
get_url
=
'http://
aws
-lcc.unififi.com/header/task/pull/cookiePR?brush_name=test'
r
=
requests
.
get
(
get_url
)
print
(
r
.
json
())
return
r
.
json
()
def
get_proxy
():
get_proxy_url
=
'http://
ymx
-lcc.unififi.com/proxy/get-proxy'
get_proxy_url
=
'http://
aws
-lcc.unififi.com/proxy/get-proxy'
r
=
requests
.
post
(
get_proxy_url
,
json
=
{
'name'
:
'PR'
,
'type'
:
'shopping'
...
...
@@ -50,7 +50,7 @@ def add_header(headers: dict, cookies: dict, px: str, thread_id=0,log=None):
"brush_proxy"
:
px
,
"brush_type"
:
"cookiePR"
}
r
=
requests
.
post
(
"http://
ymx
-lcc.unififi.com/header/add"
,
json
=
data
)
r
=
requests
.
post
(
"http://
aws
-lcc.unififi.com/header/add"
,
json
=
data
)
log
.
info
(
r
.
json
())
...
...
test_tmx.py
View file @
aabfa62a
...
...
@@ -4,7 +4,7 @@ from pyquery import PyQuery
def
get_header
():
r
=
requests
.
post
(
'http://
ymx
-lcc.unififi.com/header/borrow'
,
json
=
{
r
=
requests
.
post
(
'http://
aws
-lcc.unififi.com/header/borrow'
,
json
=
{
"brush_type"
:
"cookieAS"
,
"brush_fromto"
:
"aaa-bbb"
,
"method"
:
"shopping"
...
...
@@ -13,7 +13,7 @@ def get_header():
def
return_header
(
header
):
r
=
requests
.
post
(
'http://
ymx
-lcc.unififi.com/header/return'
,
json
=
{
r
=
requests
.
post
(
'http://
aws
-lcc.unififi.com/header/return'
,
json
=
{
"brush_type"
:
"cookieTR"
,
"_id"
:
header
[
'brush_id'
],
"status"
:
0
,
...
...
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