Commit 795c81ff authored by lixiaofang's avatar lixiaofang

ad

parents a8839c26 31d64588
......@@ -33,7 +33,15 @@ def get_data():
def auto_user_id():
try:
data = get_data()
redis_client.set("get_user_id_data", data)
# redis_client.set("get_user_id_data", data)
print(data)
file = open("/srv/apps/physical/vest/data/user_id.txt", "w")
if data:
for i in data:
file.write(str(i[0]))
file.write("\n")
# redis_client.set("get_user_id_data", data)
except:
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