Эх сурвалжийг харах

修改运存上传数据时间

peng 2 жил өмнө
parent
commit
d1a5ff5e77

+ 1 - 1
Controller/CloudStorage.py

@@ -595,7 +595,7 @@ class CloudStorageView(View):
                     fg=fg,
                     sec=sec,
                 )
-                end_time_stamp = datetime.datetime.fromtimestamp(int(end_time))
+                end_time_stamp = datetime.datetime.fromtimestamp(int(store_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'))
                 vod_hls_qs = VodHlsSummary.objects.filter(uid=uid, time=end_time_stamp)

+ 1 - 1
Controller/CloudVod.py

@@ -640,7 +640,7 @@ class CloudVodView(View):
         VodHlsModel.objects.create(uid=UID, channel=channel, time=storeTime,
                                    endTime=endTime, bucket_id=bucketID, sec=sec)
 
-        end_time_stamp = datetime.datetime.fromtimestamp(int(endTime))
+        end_time_stamp = datetime.datetime.fromtimestamp(int(storeTime))
         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'))
         vod_hls_qs = VodHlsSummary.objects.filter(uid=UID, time=end_time_stamp)