瀏覽代碼

修改图片

locky 3 年之前
父節點
當前提交
1ed54295c3
共有 1 個文件被更改,包括 2 次插入2 次删除
  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))