|
@@ -351,8 +351,8 @@ class NotificationView(View):
|
|
|
logger = logging.getLogger('info')
|
|
|
logger.info('推送图片测试:{} {} {} {} {} {} {} {}'.format(push_type, uid, appBundleId, token_val, event_type, n_time, msg_title, msg_text))
|
|
|
time.sleep(3)
|
|
|
- bucket = 'avatar-us'
|
|
|
- thumbspng = '138001380001630289036866603/1635081937159.jpg'
|
|
|
+ bucket = 'ansjerfilemanager'
|
|
|
+ thumbspng = 'app/test_image/1635081937159.jpg'
|
|
|
try:
|
|
|
image_url = aws_s3_client.generate_presigned_url('get_object', Params={'Bucket': bucket, 'Key': thumbspng}, ExpiresIn=86400)
|
|
|
logger.info('推送图片url:{}'.format(image_url))
|