소스 검색

设备上传日志解密uid,云存日志只记录上传和播放视频的操作

locky 3 년 전
부모
커밋
16448d149a
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      Controller/DeviceLogController.py
  2. 1 1
      Service/CloudLogs.py

+ 1 - 1
Controller/DeviceLogController.py

@@ -49,7 +49,7 @@ class DeviceLogView(View):
 
         try:
             device_id = uid if uid else serial_number
-            # device_id = CommonService.decode_data(device_id)
+            device_id = CommonService.decode_data(device_id)
             put_url_list = []
             for num in range(file_num):
                 # 日志文件名

+ 1 - 1
Service/CloudLogs.py

@@ -28,7 +28,7 @@ def batch_add_log_ctr(request, status_code):
     else:
         return
     request_path = request.path.strip().strip('/')
-    if 'cloudstorage' in request_path :
+    if 'storeplaylist' in request_path or 'signplaym3u8' in request_path:   # 只记录上传和播放视频的操作
         user = MiscellService.get_access_name(request_dict)
         uidToken = request_dict.get('uidToken', None)
         utko = UidTokenObject(uidToken)