|
@@ -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'))
|