pengzhibo168 5 years ago
parent
commit
62c595f827
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Controller/DetectController.py

+ 2 - 0
Controller/DetectController.py

@@ -76,6 +76,8 @@ class NotificationView(View):
         have_ykey = redisObj.get_data(key=ykey)  # uid_set 数据库缓存
         have_pkey = redisObj.get_data(key=pkey)  # 一分钟限制key
         have_dkey = redisObj.get_data(key=dkey)  # 推送类型限制
+        # 打印have_ykey
+        return JsonResponse(status=200, data={'状态': 0, 'have_dkey:': have_dkey})
         # 一分钟外,推送开启状态
         detect_med_type = 0  # 0推送旧机制 1存库不推送,2推送存库
         if have_pkey: