Explorar el Código

设备时光相册保存图片

linhaohong hace 4 meses
padre
commit
09e7394664
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Service/DevicePushService.py

+ 2 - 2
Service/DevicePushService.py

@@ -1433,7 +1433,7 @@ class DevicePushService:
         return is_copy
 
     @classmethod
-    def transfer_obs_image(cls, uid, channel, event_time, storage_location, region, is_st, bucket, max_retries=3, retry_delay=1):
+    def transfer_obs_image(cls, uid, channel, event_time, storage_location, region, is_st, bucket, max_retries=3, retry_delay=3):
         """
         复制OBS存储桶中的图片到目标位置(带重试机制)
 
@@ -1450,7 +1450,7 @@ class DevicePushService:
         if is_st == 1:
             source_key = f'{uid}/{channel}/{event_time}.jpeg'
         else:
-            source_key = f'{uid}/{channel}/{event_time}_1.jpg'
+            source_key = f'{uid}/{channel}/{event_time}_0.jpeg'
 
         target_key = f'roomumy/albumMedia/{uid}/{channel}/{event_time}.jpeg'