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
9b8759cd
Commit
9b8759cd
authored
Jun 26, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
9ffe5bb1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
gee_init.py
geetestast/gee_init.py
+1
-1
main.py
src/main.py
+3
-3
test_tmx.py
test_tmx.py
+2
-2
No files found.
geetestast/gee_init.py
View file @
9b8759cd
...
@@ -17,7 +17,7 @@ class Gee():
...
@@ -17,7 +17,7 @@ class Gee():
self
.
ctx
=
execjs
.
compile
(
open
(
'./src.js'
)
.
read
())
self
.
ctx
=
execjs
.
compile
(
open
(
'./src.js'
)
.
read
())
self
.
cts
=
'aylqflYEw3UReF+NHwmVm5NHv9ghECWvoYmzhZeBvKClUmUmfr744onaktuzC9XS'
self
.
cts
=
'aylqflYEw3UReF+NHwmVm5NHv9ghECWvoYmzhZeBvKClUmUmfr744onaktuzC9XS'
r
=
requests
.
post
(
'http://
ymx
-lcc.unififi.com/header/borrow'
,
json
=
{
r
=
requests
.
post
(
'http://
aws
-lcc.unififi.com/header/borrow'
,
json
=
{
'brush_type'
:
'cookiePR'
,
'brush_type'
:
'cookiePR'
,
'method'
:
"shopping"
'method'
:
"shopping"
})
})
...
...
src/main.py
View file @
9b8759cd
...
@@ -19,13 +19,13 @@ if not pathlib.Path('nacos-data/snapshot/').exists():
...
@@ -19,13 +19,13 @@ if not pathlib.Path('nacos-data/snapshot/').exists():
def
check_pull
():
def
check_pull
():
get_url
=
'http://
ymx
-lcc.unififi.com/header/task/pull/cookieTR?brush_name=test'
get_url
=
'http://
aws
-lcc.unififi.com/header/task/pull/cookieTR?brush_name=test'
r
=
requests
.
get
(
get_url
)
r
=
requests
.
get
(
get_url
)
return
r
.
json
()
return
r
.
json
()
def
get_proxy
():
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
=
{
r
=
requests
.
post
(
get_proxy_url
,
json
=
{
'name'
:
'TR'
,
'name'
:
'TR'
,
'type'
:
'shopping'
'type'
:
'shopping'
...
@@ -46,7 +46,7 @@ def add_header(headers: dict, cookies: dict, px: str, thread_id=0):
...
@@ -46,7 +46,7 @@ def add_header(headers: dict, cookies: dict, px: str, thread_id=0):
"brush_proxy"
:
px
,
"brush_proxy"
:
px
,
"brush_type"
:
"cookieTR"
"brush_type"
:
"cookieTR"
}
}
r
=
requests
.
post
(
"http://
ymx
-lcc.unififi.com/header/add"
,
json
=
data
)
r
=
requests
.
post
(
"http://
aws
-lcc.unififi.com/header/add"
,
json
=
data
)
print
(
r
.
json
())
print
(
r
.
json
())
...
...
test_tmx.py
View file @
9b8759cd
...
@@ -4,7 +4,7 @@ from pyquery import PyQuery
...
@@ -4,7 +4,7 @@ from pyquery import PyQuery
def
get_header
():
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_type"
:
"cookieAS"
,
"brush_fromto"
:
"aaa-bbb"
,
"brush_fromto"
:
"aaa-bbb"
,
"method"
:
"shopping"
"method"
:
"shopping"
...
@@ -13,7 +13,7 @@ def get_header():
...
@@ -13,7 +13,7 @@ def get_header():
def
return_header
(
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"
,
"brush_type"
:
"cookieTR"
,
"_id"
:
header
[
'brush_id'
],
"_id"
:
header
[
'brush_id'
],
"status"
:
0
,
"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