Commit f2818797 authored by lixiaofang's avatar lixiaofang

add

parent 795c81ff
...@@ -35,7 +35,7 @@ def auto_user_id(): ...@@ -35,7 +35,7 @@ def auto_user_id():
data = get_data() data = get_data()
# redis_client.set("get_user_id_data", data) # redis_client.set("get_user_id_data", data)
print(data) print(data)
file = open("/srv/apps/physical/vest/data/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:
......
...@@ -60,7 +60,7 @@ def vest_click_reply(): ...@@ -60,7 +60,7 @@ def vest_click_reply():
logging.info("get majia data11111111111") logging.info("get majia data11111111111")
now = datetime.datetime.now() now = datetime.datetime.now()
yes_time = now - datetime.timedelta(minutes=5) yes_time = now - datetime.timedelta(minutes=5)
user_data = open("/srv/apps/physical/vest/data/get_user_id.txt", "r") user_data = open("/srv/apps/physical/vest/data/user_id.txt", "r")
user_list = [] user_list = []
for i in user_data.readlines(): for i in user_data.readlines():
user_list.append(i) user_list.append(i)
......
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