File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,11 @@ public class WxCpAgentWorkBench implements Serializable {
5353 * 是否覆盖用户工作台的数据。设置为true的时候,会覆盖企业所有用户当前设置的数据。若设置为false,则不会覆盖用户当前设置的所有数据
5454 */
5555 private Boolean replaceUserData ;
56+ /**
57+ * 是否开启webview内的链接跳转能力,默认值为false。注意:开启之后,会使jump_url失效。 链接跳转仅支持以下schema方式:wxwork://openurl?url=xxxx,注意url需要进行编码。
58+ * 参考示例:<a href="wxwork://openurl?url=https%3A%2F%2Fwork.weixin.qq.com%2F">今日要闻</a>
59+ */
60+ private Boolean enableWebviewClick ;
5661
5762 private List <WorkBenchKeyData > keyDataList ;
5863
@@ -135,6 +140,9 @@ private void handle(JsonObject templateObject) {
135140 webview .addProperty ("url" , this .url );
136141 webview .addProperty ("jump_url" , this .jumpUrl );
137142 webview .addProperty ("pagepath" , this .pagePath );
143+ if (null != this .enableWebviewClick ) {
144+ webview .addProperty ("enable_webview_click" , this .enableWebviewClick );
145+ }
138146 templateObject .add ("webview" , webview );
139147 break ;
140148 }
You can’t perform that action at this time.
0 commit comments