pengzhibo168 %!s(int64=5) %!d(string=hai) anos
pai
achega
c6a8c95293
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Controller/DetectController.py

+ 1 - 1
Controller/DetectController.py

@@ -77,7 +77,7 @@ class NotificationView(View):
         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})
+        return JsonResponse(status=200, data={'pkey': 0, 'have_ykey': have_ykey, 'have_pkey': have_pkey, 'have_ykey': have_dkey})
         # 一分钟外,推送开启状态
         detect_med_type = 0  # 0推送旧机制 1存库不推送,2推送存库
         if have_pkey: