feat: update file download url

This commit is contained in:
Junyan Qin
2025-02-25 16:12:45 +08:00
parent 4db1d2b3a3
commit 9401a79b2b
8 changed files with 45 additions and 17 deletions

View File

@@ -86,11 +86,11 @@ class GewechatMessageConverter(adapter.MessageConverter):
try:
base64_str, image_format = await image.get_gewechat_image_base64(
gewechat_url=self.config["gewechat_url"],
gewechat_file_url=self.config["gewechat_file_url"]
app_id=self.config["app_id"],
xml_content=image_xml,
token=self.config["token"],
image_type=2,
download_image_port=self.config["gewechat_downloadImage_port"]
)
return platform_message.MessageChain([

View File

@@ -17,13 +17,13 @@ spec:
type: string
required: true
default: ""
- name: gewechat_downloadImage_port
- name: gewechat_file_url
label:
en_US: GeWeChat download image port
zh_CN: GeWeChat 下载图片的端口
type: int
en_US: GeWeChat file download URL
zh_CN: GeWeChat 文件下载URL
type: string
required: true
default: 2532
default: ""
- name: port
label:
en_US: Port