You've already forked FrameTour-BE
feat(scenic): 添加景区配置分享购买前开关
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
All checks were successful
ZhenTu-BE/pipeline/head This commit looks good
- 在AppScenicController中新增shareBeforeBuy配置返回字段 - 在ScenicConfigResp中增加shareBeforeBuy布尔类型属性 - 默认值设置为true以保持功能开启状态
This commit is contained in:
@@ -80,6 +80,7 @@ public class AppScenicController {
|
|||||||
resp.setShowPhotoWhenWaiting(scenicConfig.getBoolean("show_photo_when_waiting", false));
|
resp.setShowPhotoWhenWaiting(scenicConfig.getBoolean("show_photo_when_waiting", false));
|
||||||
resp.setImageSourcePackHint(scenicConfig.getString("image_source_pack_hint"));
|
resp.setImageSourcePackHint(scenicConfig.getString("image_source_pack_hint"));
|
||||||
resp.setVideoSourcePackHint(scenicConfig.getString("video_source_pack_hint"));
|
resp.setVideoSourcePackHint(scenicConfig.getString("video_source_pack_hint"));
|
||||||
|
resp.setShareBeforeBuy(scenicConfig.getBoolean("share_before_buy"));
|
||||||
return ApiResponse.success(resp);
|
return ApiResponse.success(resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,4 +55,5 @@ public class ScenicConfigResp {
|
|||||||
* 视频素材包提示文案
|
* 视频素材包提示文案
|
||||||
*/
|
*/
|
||||||
private String videoSourcePackHint = "";
|
private String videoSourcePackHint = "";
|
||||||
|
private Boolean shareBeforeBuy = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user