chenjunkai 5 years ago
parent
commit
107f034bbe
2 changed files with 5 additions and 5 deletions
  1. 3 3
      Service/TemplateService.py
  2. 2 2
      Service/middleware.py

+ 3 - 3
Service/TemplateService.py

@@ -65,9 +65,9 @@ class TemplateService:
             'detect/changeStatus',
             'detect/changeStatus',
             # 'notify/push',
             # 'notify/push',
             'equipment/flowUpdate',
             'equipment/flowUpdate',
-            'wechat/authsign',
-
-		 return apiList
+            'wechat/authsign'
+        ]
+        return apiList
 
 
     @staticmethod
     @staticmethod
     def email_message(type, language):
     def email_message(type, language):

+ 2 - 2
Service/middleware.py

@@ -28,7 +28,7 @@ class StatisticsUrlMiddleware(MiddlewareMixin):
             else:
             else:
                 adds = request.META.get('REMOTE_ADDR', None)
                 adds = request.META.get('REMOTE_ADDR', None)
                 api_settings.ADDR_URL.append(adds)
                 api_settings.ADDR_URL.append(adds)
-                MiscellService.add_ota_download_log(request=request)
+                # MiscellService.add_ota_download_log(request=request)
                 return 0
                 return 0
 
 
     def _https_statistics_to_close(self, request):
     def _https_statistics_to_close(self, request):
@@ -90,4 +90,4 @@ class StatisticsUrlMiddleware(MiddlewareMixin):
             except Exception as e:
             except Exception as e:
                 print(repr(e))
                 print(repr(e))
             django.db.close_old_connections()
             django.db.close_old_connections()
-		return response
+        return response