🎨 #3697 【企业微信】修复自定义工作台enable_webview_click等参数设置无效的问题

This commit is contained in:
Copilot
2025-09-23 10:40:53 +08:00
committed by GitHub
parent ad19f653c7
commit 6fc17201e1

View File

@@ -168,9 +168,13 @@ public class WxCpAgentWorkBench implements Serializable {
webview.addProperty("url", this.url);
webview.addProperty("jump_url", this.jumpUrl);
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("hide_title", this.hideTitle);
if (this.hideTitle != null) {
webview.addProperty("hide_title", this.hideTitle);
}
templateObject.add("webview", webview);
break;
}
@@ -236,9 +240,13 @@ public class WxCpAgentWorkBench implements Serializable {
webview.addProperty("url", this.url);
webview.addProperty("jump_url", this.jumpUrl);
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("hide_title", this.hideTitle);
if (this.hideTitle != null) {
webview.addProperty("hide_title", this.hideTitle);
}
JsonObject dataObject = new JsonObject();
dataObject.addProperty("type", WxCpConsts.WorkBenchType.WEBVIEW);
dataObject.add("webview", webview);