Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cybertron
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
alpha
cybertron
Commits
cea1d65c
Commit
cea1d65c
authored
Apr 18, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
6050947b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
offline_comment.py
offline_comment.py
+5
-5
No files found.
offline_comment.py
View file @
cea1d65c
...
...
@@ -8,8 +8,6 @@ import traceback
from
log_settings
import
*
import
logging
from
auto_request
import
logins
,
reply
,
get_offline_comment
,
time_convs
# from auto_request import host, user, port, db, passwd
auto_click_url
=
"http://earth.igengmei.com/api/v1/like"
auto_reply_url
=
"http://earth.igengmei.com/api/v1/reply/create"
auto_follow_url
=
"http://earth.igengmei.com/api/v1/follow"
...
...
@@ -23,16 +21,18 @@ auto_urge_url = "http://earth.igengmei.com/api/v1/user/urge"
# 评论取自评论库,并自动随机关联马甲
#
# 注意需要禁止本帖作者评论
host
=
"rm-2zeaut61u9sm21m0b.mysql.rds.aliyuncs.com"
host
=
""
user
=
"work"
passwd
=
"Gengmei123"
db
=
"alpha"
port
=
"3306"
port
=
3306
def
get_data
(
numtime
):
try
:
pc
=
pymysql
.
connect
(
host
=
host
,
user
=
user
,
passwd
=
passwd
,
db
=
db
,
port
=
port
)
pc
=
pymysql
.
connect
(
host
=
"rm-2zeaut61u9sm21m0b.mysql.rds.aliyuncs.com"
,
user
=
"work"
,
passwd
=
"Gengmei123"
,
db
=
"alpha"
,
port
=
3306
)
cursor
=
pc
.
cursor
()
cursor
.
execute
(
"SELECT id FROM topic WHERE is_online =1 and create_time >=
%
s and (content_level = 4 or content_level = 5) and user_id in (select user_id from user_extra where is_shadow = 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