Commit 54cee0f7 authored by lixiaofang's avatar lixiaofang

add

parent 2703571b
......@@ -15,7 +15,6 @@ from get_session import get_comments, get_cookies, click, time_conv, login, repl
@shared_task
def auto_click(es_type, id):
try:
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=3306)
cursor = pc.cursor()
cursor.execute(
......@@ -68,7 +67,7 @@ def auto_click(es_type, id):
@shared_task
def auto_reply(id):
def auto_reply(es_type,id):
try:
pc = pymysql.connect(host=host, user=user, passwd=passwd, db=db, port=3306)
cursor = pc.cursor()
......@@ -115,5 +114,3 @@ def auto_reply(id):
except:
logging.error("catch exception,main:%s" % traceback.format_exc())
# 发帖瞬时:[1 - 5]个马甲点赞
# 1. 用户发帖后,[瞬时],1-3条评论
......@@ -14,6 +14,9 @@ class CeleryTaskRouter(object):
],
"majia-alpha": [
'injection.data_sync.auto_instant_click.auto_click',
],
"majia-alpha": [
'injection.data_sync.auto_instant_click.auto_reply',
]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment