Explorar o código

修改推送图片过期时间

locky %!s(int64=2) %!d(string=hai) anos
pai
achega
91d1fd9e0c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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,