|
@@ -346,10 +346,9 @@ class NotificationView(View):
|
|
logger = logging.getLogger('info')
|
|
logger = logging.getLogger('info')
|
|
logger.info('推送图片测试:{} {} {} {} {} {} {} {}'.format(push_type, uid, appBundleId, token_val, event_type, n_time,
|
|
logger.info('推送图片测试:{} {} {} {} {} {} {} {}'.format(push_type, uid, appBundleId, token_val, event_type, n_time,
|
|
msg_title, msg_text))
|
|
msg_title, msg_text))
|
|
- time.sleep(3)
|
|
|
|
try:
|
|
try:
|
|
image_url = aws_s3_client.generate_presigned_url('get_object', Params={'Bucket': bucket, 'Key': key},
|
|
image_url = aws_s3_client.generate_presigned_url('get_object', Params={'Bucket': bucket, 'Key': key},
|
|
- ExpiresIn=86400)
|
|
|
|
|
|
+ ExpiresIn=300)
|
|
logger.info('推送图片url:{}'.format(image_url))
|
|
logger.info('推送图片url:{}'.format(image_url))
|
|
if push_type == 0:
|
|
if push_type == 0:
|
|
GatewayPushService.ios_apns_push(uid, appBundleId, token_val, n_time, event_type, msg_title, msg_text,
|
|
GatewayPushService.ios_apns_push(uid, appBundleId, token_val, n_time, event_type, msg_title, msg_text,
|