数据上报添加时间
This commit is contained in:
parent
0477ccb57e
commit
3442098337
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user