瀏覽代碼

修改移动侦测推送限制

peng 2 年之前
父節點
當前提交
785382ea7a
共有 2 個文件被更改,包括 3 次插入1 次删除
  1. 2 0
      Controller/DetectControllerV2.py
  2. 1 1
      Service/EquipmentInfoService.py

+ 2 - 0
Controller/DetectControllerV2.py

@@ -108,6 +108,8 @@ class NotificationV2View(View):
                     # 缓存APP提醒推送间隔 默认1分钟提醒一次
                     DevicePushService.cache_push_detect_interval(redisObj, push_interval, detect_interval,
                                                                  uid_set_push_list[0]['uid_set__new_detect_interval'])
+            else:
+                cache_app_push = ''
             bucket = ''
             aws_s3_client = ''
             if is_st == 1 or is_st == 3:  # 使用aws s3

+ 1 - 1
Service/EquipmentInfoService.py

@@ -44,7 +44,7 @@ class EquipmentInfoService:
         elif week == 7:
             equipment_info = EquipmentInfoSunday(**kwargs)
         logger.info(type(equipment_info))
-        logger.info(equipment_info)
+        logger.info('model数据为:'.format(equipment_info))
         return equipment_info
 
     @staticmethod