|
@@ -48,7 +48,7 @@ class NotificationView(View):
|
|
|
return self.validation(request.POST)
|
|
|
|
|
|
def validation(self, request_dict):
|
|
|
- LogUtil.write_log(log='push----------{time}'.format(time=time.strftime('%Y-%m-%d-%H-%M-%S', time.localtime())))
|
|
|
+
|
|
|
uidToken = request_dict.get('uidToken', None)
|
|
|
etk = request_dict.get('etk', None)
|
|
|
channel = request_dict.get('channel', '1')
|
|
@@ -69,6 +69,13 @@ class NotificationView(View):
|
|
|
else:
|
|
|
utko = UidTokenObject(uidToken)
|
|
|
uid = utko.UID
|
|
|
+ log = 'push----------{time}'.format(time=time.strftime('%Y-%m-%d-%H-%M-%S', time.localtime()))
|
|
|
+ log += '\n'
|
|
|
+ log += '\tuid=' + uid
|
|
|
+ log += '\tchannel=' + channel
|
|
|
+ log += '\tevent_type=' + event_type
|
|
|
+ LogUtil.write_log(log=log)
|
|
|
+
|
|
|
pkey = '{uid}_{channel}_{event_type}_ptl'.format(uid=uid, event_type=event_type, channel=channel)
|
|
|
# ykey = 'MUJ887NLR8K8GBM9111A_redis_qs'.format(uid=uid)
|
|
|
ykey = '{uid}_redis_qs'.format(uid=uid)
|