Ver código fonte

修改图片

locky 3 anos atrás
pai
commit
1ed54295c3
1 arquivos alterados com 2 adições e 2 exclusões
  1. 2 2
      Controller/DetectControllerV2.py

+ 2 - 2
Controller/DetectControllerV2.py

@@ -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 = 'foreignpush'
-        thumbspng = '11PGLS16VTM7PZGP111A/1/1661251934.jpeg'
+        bucket = 'avatar-us'
+        thumbspng = '138001380001630289036866603/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))