数据上报添加时间

This commit is contained in:
pengtao 2019-10-18 17:15:49 +08:00
parent 0477ccb57e
commit 3442098337

View File

@ -53,6 +53,7 @@ class DispatchHandler(tornado.web.RequestHandler):
if not post_data:
post_data = self.request.body.decode('utf-8')
post_data = json.loads(post_data)
post_data['time']=datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
redis_key = f"ad::jumpRecording"
try:
my_redis.lpush(redis_key, json.dumps(post_data))