|
@@ -64,9 +64,8 @@ class NotificationView(View):
|
|
|
# pkey = '{uid}_{channel}_ptl'.format(uid=uid, channel=channel)
|
|
|
pkey = '{uid}_ptl'.format(uid=uid)
|
|
|
if redisObj.get_data(key=pkey):
|
|
|
- pass
|
|
|
- # res_data = {'code': 0, 'msg': 'success,!'}
|
|
|
- # return JsonResponse(status=200, data=res_data)
|
|
|
+ res_data = {'code': 0, 'msg': 'success,!'}
|
|
|
+ return JsonResponse(status=200, data=res_data)
|
|
|
else:
|
|
|
# 设置推送间隔60秒一次
|
|
|
redisObj.set_data(key=pkey, val=1, expire=60)
|