Commit c8df33b5 authored by lixiaofang's avatar lixiaofang

add

parent d6efa3ed
......@@ -65,9 +65,9 @@ if __name__ == "__main__":
have_reply = redis_client.get(redis_key1)
result = json.loads(str(have_reply, encoding="utf-8"))
if result:
redis_client.set(redis_key2, reply_data_comment)
redis_client.set(redis_key2, json.dumps(reply_data_comment))
else:
redis_client.set(redis_key1, reply_data_comment)
redis_client.set(redis_key1, json.dumps(reply_data_comment))
except:
logging.error("catch exception,main:%s" % traceback.format_exc())
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