From 7e0af32529ff595387f5f0e49f30a3bc4ba9cfd7 Mon Sep 17 00:00:00 2001 From: Macro <715292834@qq.com> Date: Wed, 7 Aug 2024 12:41:00 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20#3333=20=E3=80=90=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E3=80=91=E8=AE=BE=E7=BD=AE=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E5=9C=A8=E7=94=A8=E6=88=B7=E5=B7=A5=E4=BD=9C=E5=8F=B0=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E7=9A=84webview=E5=9E=8B=E6=95=B0=E6=8D=AE=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E6=94=AF=E6=8C=81enable=5Fwebview=5Fclick=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java index a2737f723..e74173ee3 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/WxCpAgentWorkBench.java @@ -53,6 +53,11 @@ public class WxCpAgentWorkBench implements Serializable { * 是否覆盖用户工作台的数据。设置为true的时候,会覆盖企业所有用户当前设置的数据。若设置为false,则不会覆盖用户当前设置的所有数据 */ private Boolean replaceUserData; + /** + * 是否开启webview内的链接跳转能力,默认值为false。注意:开启之后,会使jump_url失效。 链接跳转仅支持以下schema方式:wxwork://openurl?url=xxxx,注意url需要进行编码。 + * 参考示例:今日要闻 + */ + private Boolean enableWebviewClick; private List keyDataList; @@ -135,6 +140,9 @@ public class WxCpAgentWorkBench implements Serializable { webview.addProperty("url", this.url); webview.addProperty("jump_url", this.jumpUrl); webview.addProperty("pagepath", this.pagePath); + if (null != this.enableWebviewClick) { + webview.addProperty("enable_webview_click", this.enableWebviewClick); + } templateObject.add("webview", webview); break; }