1
0

4 Commits e7c7c9a022 ... fcbd3cc6bd

Autor SHA1 Nachricht Datum
  chenshibin fcbd3cc6bd 重置语音提示 vor 4 Jahren
  chenshibin 64bec49ac3 Merge branch 'master' of http://192.168.136.99:3000/servers/ASJPush into test vor 4 Jahren
  locky ffbad8d1dc 日志文件配置 vor 4 Jahren
  locky 89682c5250 限制日志文件大小 vor 4 Jahren
2 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 2 2
      AnsjerPush/formal_settings.py
  2. 1 1
      Controller/ShadowController.py

+ 2 - 2
AnsjerPush/formal_settings.py

@@ -194,10 +194,10 @@ LOGGING = {
         },
         'info': {
             'level': 'INFO',
-            'class': 'logging.handlers.TimedRotatingFileHandler',
+            'class': 'logging.handlers.RotatingFileHandler',
             'filename': BASE_DIR + '/static/log/info/info.log',
+            'maxBytes': 1024 * 1024 * 300,  # 300M
             'backupCount': 30,
-            'when': 'D',
             'formatter': 'standard',
             'encoding': 'utf-8',
         },

+ 1 - 1
Controller/ShadowController.py

@@ -82,7 +82,7 @@ def update_device_shadow(request):
         uid_channel_qs = UidChannelSetModel.objects.filter(uid__uid=uid)
         if uid_channel_qs.exists():
             uid_channel_qs.update(voice_prompt_intelligent_mute=0, voice_prompt_status=0, voice_prompt_enter=0,
-                           voice_prompt_leave=0, voice_repeat_day=127)
+                           voice_prompt_leave=0, voice_repeat_day=127,  voice_start_time=0, voice_end_time=0, voice_start_x=0, voice_start_y =18,voice_end_x=44, voice_end_y=18,voice_direction=0)
 
         # 删除uid_set数据
         UidSetModel.objects.filter(uid=uid).delete()