Browse Source

推送修改报错

zhangdongming 2 năm trước cách đây
mục cha
commit
24c35721b7
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      Service/DevicePushService.py

+ 3 - 2
Service/DevicePushService.py

@@ -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: