From 243d275066a82cbf62eaf43c87b062fae47ab80a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=A5=E6=B5=B7?= Date: Tue, 2 Apr 2024 10:24:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E5=A4=84=E7=90=86=E5=87=BD=E6=95=B0WEBUI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wclient/robot/receiver_3.go | 2 +- webview/src/apps/keyword/create.html | 14 ++++++++++++-- webview/src/apps/keyword/update.html | 14 ++++++++++++-- webview/src/openapi/const.ts | 3 ++- 4 files changed, 27 insertions(+), 6 deletions(-) diff --git a/wclient/robot/receiver_3.go b/wclient/robot/receiver_3.go index a98afe5..858ce25 100644 --- a/wclient/robot/receiver_3.go +++ b/wclient/robot/receiver_3.go @@ -24,7 +24,7 @@ func receiver3(msg *wcferry.WxMsg) { } // 外部图片处理插件 - keywords, err := keyword.FetchAll(&keyword.FetchAllParam{Group: "imager"}) + keywords, err := keyword.FetchAll(&keyword.FetchAllParam{Group: "imagefn"}) if err == nil && len(keywords) > 0 { img := msgImage(msg.Id, msg.Extra) for _, v := range keywords { diff --git a/webview/src/apps/keyword/create.html b/webview/src/apps/keyword/create.html index d2f4b7c..afff450 100644 --- a/webview/src/apps/keyword/create.html +++ b/webview/src/apps/keyword/create.html @@ -47,12 +47,22 @@
- 填写可执行程序的绝对路径及参数,如:node.exe D:\wrest\app.js
+ 填写可执行程序的绝对路径及参数,如:node.exe D:\wrest\app.js。指令收到的最后一个参数为聊天内容
输出的内容将作为回复,发送文件或图片请输出 http:// 开头的链接
} - @if (formdata.group == 'handler') { + @else if (formdata.group == 'imagefn') { +
+ + +
+ 填写可执行程序的绝对路径及参数,如:node.exe D:\wrest\app.js。指令收到的最后一个参数为图片路径
+ 输出的内容将作为回复,发送文件或图片请输出 http:// 开头的链接 +
+
+ } + @else if (formdata.group == 'handler') {
- 填写可执行程序的绝对路径及参数,如:node.exe D:\wrest\app.js
+ 填写可执行程序的绝对路径及参数,如:node.exe D:\wrest\app.js。指令收到的最后一个参数为聊天内容
输出的内容将作为回复,发送文件或图片请输出 http:// 开头的链接
} - @if (formdata.group == 'handler') { + @else if (formdata.group == 'imagefn') { +
+ + +
+ 填写可执行程序的绝对路径及参数,如:node.exe D:\wrest\app.js。指令收到的最后一个参数为图片路径
+ 输出的内容将作为回复,发送文件或图片请输出 http:// 开头的链接 +
+
+ } + @else if (formdata.group == 'handler') {