Skip to content

Commit

Permalink
fix(push-飞书自建应用): 修复图片下载时的403
Browse files Browse the repository at this point in the history
  • Loading branch information
nfe-w committed May 7, 2024
1 parent b269651 commit 9846ac2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion push_channel/feishu_apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import os
import uuid

import requests
from requests_toolbelt import MultipartEncoder

from common import util
Expand Down Expand Up @@ -84,7 +85,7 @@ def push(self, title, content, jump_url=None, pic_url=None):

def _get_img_key(self, pic_url: str):
# 下载图片
response = util.requests_get(pic_url)
response = requests.get(pic_url, verify=False)
if not util.check_response_is_ok(response):
log.error(f"【推送_{self.name}】下载图片{pic_url}失败")
return None
Expand Down

0 comments on commit 9846ac2

Please sign in to comment.