Browse Source

修改推送图片过期时间

locky 2 năm trước cách đây
mục cha
commit
91d1fd9e0c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Service/DevicePushService.py

+ 1 - 1
Service/DevicePushService.py

@@ -457,7 +457,7 @@ class DevicePushService:
         try:
             image_url = aws_s3_client.generate_presigned_url('get_object',
                                                              Params={'Bucket': bucket, 'Key': key},
-                                                             ExpiresIn=300)
+                                                             ExpiresIn=3600)
             LOGGING.info('推送图片url:{}'.format(image_url))
             if push_type == 0:
                 PushObject.ios_apns_push(uid, appBundleId, token_val, n_time, event_type, msg_title, msg_text,