Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
Project
Project
Details
Activity
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
吴升宇
physical
Commits
4bd367fb
Commit
4bd367fb
authored
Aug 12, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
a654b975
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
39 deletions
+35
-39
true_click_five.py
vest/click/true_click_five.py
+12
-12
true_click_one.py
vest/click/true_click_one.py
+11
-12
true_click_two.py
vest/click/true_click_two.py
+11
-12
auto_request.py
vest/request/auto_request.py
+1
-3
No files found.
vest/click/true_click_five.py
View file @
4bd367fb
...
@@ -20,19 +20,19 @@ def get_data(numtime, numtime2):
...
@@ -20,19 +20,19 @@ def get_data(numtime, numtime2):
topic_id
=
list
(
data
)
topic_id
=
list
(
data
)
topic_id_list
=
[]
topic_id_list
=
[]
logging
.
info
(
"get topic_id:
%
s"
%
topic_id
)
logging
.
info
(
"get topic_id:
%
s"
%
topic_id
)
try
:
for
i
in
topic_id
and
topic_id
:
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
cursor
.
execute
(
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
]))
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
data
=
cursor
.
fetchall
()
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
user_id
=
list
(
data
)
if
(
user_id
and
user_id
[
"is_shadow"
]
==
0
)
or
len
(
data
)
==
0
:
if
user_id
:
topic_id_list
.
append
(
i
)
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
pc
.
close
()
except
:
pass
return
topic_id_list
return
topic_id_list
except
:
except
:
logging
.
error
(
"catch exception,get_data:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,get_data:
%
s"
%
traceback
.
format_exc
())
return
[]
return
[]
...
...
vest/click/true_click_one.py
View file @
4bd367fb
...
@@ -19,19 +19,18 @@ def get_data(numtime, numtime2):
...
@@ -19,19 +19,18 @@ def get_data(numtime, numtime2):
topic_id
=
list
(
data
)
topic_id
=
list
(
data
)
topic_id_list
=
[]
topic_id_list
=
[]
logging
.
info
(
"get topic_id:
%
s"
%
topic_id
)
logging
.
info
(
"get topic_id:
%
s"
%
topic_id
)
try
:
for
i
in
topic_id
and
topic_id
:
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
]))
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
data
=
cursor
.
fetchall
()
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
user_id
=
list
(
data
)
if
(
user_id
and
user_id
[
"is_shadow"
]
==
0
)
or
len
(
user_id
)
==
0
:
if
user_id
:
topic_id_list
.
append
(
i
)
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
pc
.
close
()
except
:
pass
return
topic_id_list
return
topic_id_list
except
:
except
:
logging
.
error
(
"catch exception,get_data:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,get_data:
%
s"
%
traceback
.
format_exc
())
return
[]
return
[]
...
...
vest/click/true_click_two.py
View file @
4bd367fb
...
@@ -21,19 +21,18 @@ def get_data(numtime, numtime2):
...
@@ -21,19 +21,18 @@ def get_data(numtime, numtime2):
topic_id
=
list
(
data
)
topic_id
=
list
(
data
)
topic_id_list
=
[]
topic_id_list
=
[]
logging
.
info
(
"get topic_id:
%
s"
%
topic_id
)
logging
.
info
(
"get topic_id:
%
s"
%
topic_id
)
try
:
for
i
in
topic_id
and
topic_id
:
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
data
=
cursor
.
fetchall
()
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
user_id
=
list
(
data
)
if
user_id
:
if
user_id
:
topic_id_list
.
append
(
i
)
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
pc
.
close
()
except
:
pass
return
topic_id_list
return
topic_id_list
except
:
except
:
logging
.
error
(
"catch exception,get_data:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,get_data:
%
s"
%
traceback
.
format_exc
())
return
[]
return
[]
...
...
vest/request/auto_request.py
View file @
4bd367fb
...
@@ -121,9 +121,7 @@ def login():
...
@@ -121,9 +121,7 @@ def login():
try
:
try
:
user_id
=
get_majia
()
user_id
=
get_majia
()
logging
.
info
(
"get user_id:
%
s"
%
user_id
)
logging
.
info
(
"get user_id:
%
s"
%
user_id
)
cookies
=
get_cookies
(
user_id
)
cookies
=
get_cookies
(
user_id
)
cookies
=
"yhlcnc7q3louskthgpjguoi5n7r326cm"
if
cookies
is
not
None
:
if
cookies
is
not
None
:
return
{
'sessionid'
:
cookies
}
return
{
'sessionid'
:
cookies
}
except
:
except
:
...
@@ -134,7 +132,7 @@ def login():
...
@@ -134,7 +132,7 @@ def login():
def
logins
(
user_id
):
def
logins
(
user_id
):
try
:
try
:
cookies
=
get_cookies
(
user_id
)
cookies
=
get_cookies
(
user_id
)
cookies
=
"yhlcnc7q3louskthgpjguoi5n7r326cm"
#
cookies = "yhlcnc7q3louskthgpjguoi5n7r326cm"
if
cookies
is
not
None
:
if
cookies
is
not
None
:
return
{
'sessionid'
:
cookies
}
return
{
'sessionid'
:
cookies
}
...
...
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