Преглед на файлове

修改移动侦测推送限制

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