|
@@ -165,7 +165,7 @@ class DevicePushService:
|
|
|
push_thread = threading.Thread(target=cls.async_send_picture_push, args=(
|
|
|
push_type, param['aws_s3_client'], param['bucket'], key, param['uid'], param['appBundleId'],
|
|
|
param['token_val'], param['event_type'], param['n_time'],
|
|
|
- param['msg_title'], param['msg_text'], param['channel']))
|
|
|
+ param['kwag_args']['msg_title'], param['kwag_args']['msg_text'], param['channel']))
|
|
|
push_thread.start()
|
|
|
else:
|
|
|
if push_type == 0: # ios apns
|
|
@@ -369,7 +369,8 @@ class DevicePushService:
|
|
|
异步APP图片推送
|
|
|
"""
|
|
|
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=300)
|
|
|
LOGGING.info('推送图片url:{}'.format(image_url))
|
|
|
if push_type == 0:
|