Commit 82ec9d3e authored by lixiaofang's avatar lixiaofang

ad

parent 5908afc5
......@@ -3,7 +3,7 @@ import pymysql
import random
import traceback
import logging
from vest.request.auto_request import login, time_conv, get_comment, reply
from vest.request.auto_request import login, time_conv, get_comment, reply, judge_topic_info_get_comment
from vest.request.auto_request import host, user, db, passwd
from libs.error import logging_exception
......@@ -51,8 +51,7 @@ def true_comment_three():
rand_num = random.randint(0, 1)
if rand_num == 1:
cook = login()
logging.info("get cook;%s" % cook)
comment = get_comment()
comment = judge_topic_info_get_comment(i[1])
if cook is not None:
reply(cook, i[1], comment)
else:
......
......@@ -2,7 +2,7 @@ import pymysql
import random
import traceback
import logging
from vest.request.auto_request import login, time_conv, get_comment, reply
from vest.request.auto_request import login, time_conv, get_comment, reply, judge_topic_info_get_comment
from vest.request.auto_request import host, user, db, passwd
from libs.error import logging_exception
......@@ -51,7 +51,7 @@ def true_comment_two():
rand_num = random.randint(0, 1)
if rand_num == 1:
cook = login()
comment = get_comment()
comment = judge_topic_info_get_comment(i[1])
if cook is not None:
reply(cook, i[1], comment)
else:
......
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