You've already forked FrameTour-BE
feat(app): 新增分享前购买配置项
- 在AppScenicController中增加shareBeforeBuy配置项- 默认值设置为true以启用该功能- 更新响应对象以支持新的配置选项
This commit is contained in:
@@ -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.setShareBeforeBuy(scenicConfig.getBoolean("share_before_buy", true));
|
||||
return ApiResponse.success(resp);
|
||||
}
|
||||
|
||||
|
@@ -50,4 +50,5 @@ public class ScenicConfigResp {
|
||||
private Boolean groupingEnable;
|
||||
private Boolean showPhotoWhenWaiting;
|
||||
private String watermarkUrl;
|
||||
private Boolean shareBeforeBuy;
|
||||
}
|
||||
|
Reference in New Issue
Block a user