🎨 #3697 【企业微信】修复自定义工作台enable_webview_click等参数设置无效的问题
This commit is contained in:
@@ -168,9 +168,13 @@ public class WxCpAgentWorkBench implements Serializable {
|
|||||||
webview.addProperty("url", this.url);
|
webview.addProperty("url", this.url);
|
||||||
webview.addProperty("jump_url", this.jumpUrl);
|
webview.addProperty("jump_url", this.jumpUrl);
|
||||||
webview.addProperty("pagepath", this.pagePath);
|
webview.addProperty("pagepath", this.pagePath);
|
||||||
webview.addProperty("enable_webview_click", this.enableWebviewClick);
|
if (this.enableWebviewClick != null) {
|
||||||
|
webview.addProperty("enable_webview_click", this.enableWebviewClick);
|
||||||
|
}
|
||||||
webview.addProperty("height", this.height);
|
webview.addProperty("height", this.height);
|
||||||
webview.addProperty("hide_title", this.hideTitle);
|
if (this.hideTitle != null) {
|
||||||
|
webview.addProperty("hide_title", this.hideTitle);
|
||||||
|
}
|
||||||
templateObject.add("webview", webview);
|
templateObject.add("webview", webview);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -236,9 +240,13 @@ public class WxCpAgentWorkBench implements Serializable {
|
|||||||
webview.addProperty("url", this.url);
|
webview.addProperty("url", this.url);
|
||||||
webview.addProperty("jump_url", this.jumpUrl);
|
webview.addProperty("jump_url", this.jumpUrl);
|
||||||
webview.addProperty("pagepath", this.pagePath);
|
webview.addProperty("pagepath", this.pagePath);
|
||||||
webview.addProperty("enable_webview_click", this.enableWebviewClick);
|
if (this.enableWebviewClick != null) {
|
||||||
|
webview.addProperty("enable_webview_click", this.enableWebviewClick);
|
||||||
|
}
|
||||||
webview.addProperty("height", this.height);
|
webview.addProperty("height", this.height);
|
||||||
webview.addProperty("hide_title", this.hideTitle);
|
if (this.hideTitle != null) {
|
||||||
|
webview.addProperty("hide_title", this.hideTitle);
|
||||||
|
}
|
||||||
JsonObject dataObject = new JsonObject();
|
JsonObject dataObject = new JsonObject();
|
||||||
dataObject.addProperty("type", WxCpConsts.WorkBenchType.WEBVIEW);
|
dataObject.addProperty("type", WxCpConsts.WorkBenchType.WEBVIEW);
|
||||||
dataObject.add("webview", webview);
|
dataObject.add("webview", webview);
|
||||||
|
|||||||
Reference in New Issue
Block a user