Commit b2985a74 authored by lixiaofang's avatar lixiaofang

add

parent 1ecada93
...@@ -42,6 +42,6 @@ def one_seven_star_topic(): ...@@ -42,6 +42,6 @@ def one_seven_star_topic():
if rand_num == 1: if rand_num == 1:
cook = login() cook = login()
if cook is not None: if cook is not None:
click(cook, i[1]) click(cook, i[0])
except: except:
logging.error("catch exception,main:%s" % traceback.format_exc()) logging.error("catch exception,main:%s" % traceback.format_exc())
...@@ -40,7 +40,7 @@ def one_seven_topic_comment(): ...@@ -40,7 +40,7 @@ def one_seven_topic_comment():
for i in user_id: for i in user_id:
cook = login() cook = login()
if cook is not None: if cook is not None:
click(cook, i[1]) click(cook, i[0])
except: except:
logging.error("catch exception,main:%s" % traceback.format_exc()) logging.error("catch exception,main:%s" % traceback.format_exc())
...@@ -33,14 +33,12 @@ def get_data(): ...@@ -33,14 +33,12 @@ def get_data():
def auto_user_id(): def auto_user_id():
try: try:
data = get_data() data = get_data()
print(data)
file = open("/srv/apps/physical/vest/data/get_user_id.txt", "w") file = open("/srv/apps/physical/vest/data/get_user_id.txt", "w")
if data: if data:
for i in data: for i in data:
file.write(str(i[0])) file.write(str(i[0]))
file.write("\n") file.write("\n")
# redis_client.set("get_user_id_data", data) redis_client.set("get_user_id_data", data)
except: except:
logging_exception() logging_exception()
......
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