feat(scenic): 添加景区配置分享购买前开关
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good

- 在AppScenicController中新增shareBeforeBuy配置返回字段
- 在ScenicConfigResp中增加shareBeforeBuy布尔类型属性
- 默认值设置为true以保持功能开启状态
This commit is contained in:
2025-10-27 19:00:10 +08:00
parent f07d808f3d
commit e887fd47f2
2 changed files with 2 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ public class AppScenicController {
resp.setShowPhotoWhenWaiting(scenicConfig.getBoolean("show_photo_when_waiting", false));
resp.setImageSourcePackHint(scenicConfig.getString("image_source_pack_hint"));
resp.setVideoSourcePackHint(scenicConfig.getString("video_source_pack_hint"));
resp.setShareBeforeBuy(scenicConfig.getBoolean("share_before_buy"));
return ApiResponse.success(resp);
}

View File

@@ -55,4 +55,5 @@ public class ScenicConfigResp {
* 视频素材包提示文案
*/
private String videoSourcePackHint = "";
private Boolean shareBeforeBuy = true;
}