mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-11 00:06:04 +00:00
feat: update file download url
This commit is contained in:
@@ -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([
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user