Răsfoiți Sursa

云存上传最终版

peng 2 ani în urmă
părinte
comite
59dfe1999c
2 a modificat fișierele cu 1 adăugiri și 24 ștergeri
  1. 0 12
      Controller/CloudStorage.py
  2. 1 12
      Controller/CloudVod.py

+ 0 - 12
Controller/CloudStorage.py

@@ -590,18 +590,6 @@ class CloudStorageView(View):
                     fg=fg,
                     sec=sec,
                 )
-                ip = '127.0.0.1'
-                content = json.loads(json.dumps(request_dict))
-                log = {
-                    'ip': ip,
-                    'user_id': 2,
-                    'status': 200,
-                    'time': int(time.time()),
-                    'url': 'CloudStorage',
-                    'content': json.dumps(content),
-                    'operation': '{}上传云存视频'.format(UID),
-                }
-                LogModel.objects.create(**log)
                 end_time_stamp = datetime.datetime.fromtimestamp(int(end_time))
                 end_time_str = datetime.datetime(end_time_stamp.year, end_time_stamp.month, 1)
                 end_time_stamp = CommonService.str_to_timestamp(end_time_str.strftime('%Y-%m-%d %H:%M:%S'))

+ 1 - 12
Controller/CloudVod.py

@@ -639,18 +639,7 @@ class CloudVodView(View):
         endTime = int(storeTime) + storeDay * 86400
         VodHlsModel.objects.create(uid=UID, channel=channel, time=storeTime,
                                    endTime=endTime, bucket_id=bucketID, sec=sec)
-        ip = '127.0.0.1'
-        content = json.loads(json.dumps(request_dict))
-        log = {
-            'ip': ip,
-            'user_id': 2,
-            'status': 200,
-            'time': int(time.time()),
-            'url': 'CloudVod',
-            'content': json.dumps(content),
-            'operation': '{}上传云存视频'.format(UID),
-        }
-        LogModel.objects.create(**log)
+
         end_time_stamp = datetime.datetime.fromtimestamp(int(endTime))
         end_time_str = datetime.datetime(end_time_stamp.year, end_time_stamp.month, 1)
         end_time_stamp = CommonService.str_to_timestamp(end_time_str.strftime('%Y-%m-%d %H:%M:%S'))