From c689496130dab6c9b27999221de3cc31f8cae640 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Fri, 10 Oct 2025 10:38:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(scenic):=20=E6=B7=BB=E5=8A=A0=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E5=8A=9F=E8=83=BD=E9=85=8D=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在ScenicConfigResp中新增shareEnable字段 - 在AppScenicController中设置shareEnable默认值为true - 支持景区配置是否开启分享功能 - 保持与shareBeforeBuy配置项的一致性处理 --- .../com/ycwl/basic/controller/mobile/AppScenicController.java | 1 + .../com/ycwl/basic/model/pc/scenic/resp/ScenicConfigResp.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/com/ycwl/basic/controller/mobile/AppScenicController.java b/src/main/java/com/ycwl/basic/controller/mobile/AppScenicController.java index 189cfdd3..6008fe61 100644 --- a/src/main/java/com/ycwl/basic/controller/mobile/AppScenicController.java +++ b/src/main/java/com/ycwl/basic/controller/mobile/AppScenicController.java @@ -93,6 +93,7 @@ public class AppScenicController { resp.setGroupingEnable(scenicConfig.getBoolean("grouping_enable", false)); resp.setShowPhotoWhenWaiting(scenicConfig.getBoolean("show_photo_when_waiting", false)); resp.setWatermarkUrl(scenicConfig.getString("watermark_url")); + resp.setShareEnable(scenicConfig.getBoolean("share_enable", true)); resp.setShareBeforeBuy(scenicConfig.getBoolean("share_before_buy", true)); return ApiResponse.success(resp); } diff --git a/src/main/java/com/ycwl/basic/model/pc/scenic/resp/ScenicConfigResp.java b/src/main/java/com/ycwl/basic/model/pc/scenic/resp/ScenicConfigResp.java index 5e3d4b3b..4cb0ecb8 100644 --- a/src/main/java/com/ycwl/basic/model/pc/scenic/resp/ScenicConfigResp.java +++ b/src/main/java/com/ycwl/basic/model/pc/scenic/resp/ScenicConfigResp.java @@ -50,5 +50,6 @@ public class ScenicConfigResp { private Boolean groupingEnable; private Boolean showPhotoWhenWaiting; private String watermarkUrl; + private Boolean shareEnable; private Boolean shareBeforeBuy; }