diff --git a/docs/数据库修改总结.md b/docs/数据库修改总结.md index e5521e2..7ac8035 100644 --- a/docs/数据库修改总结.md +++ b/docs/数据库修改总结.md @@ -38,9 +38,6 @@ - `link.default_quantity`: 默认奖励点数(50) - `link.refresh_interval`: 链接刷新间隔(300秒) - `link.qr_expire_time`: 二维码过期时间(600秒) -- `link.max_times_per_batch`: 每批次最大刷奖励次数(100) -- `link.min_quantity`: 最小奖励点数(10) -- `link.max_quantity`: 最大奖励点数(1000) **脚本服务器相关:** - `script.server_url`: 脚本服务器地址 diff --git a/docs/系统配置接口使用示例.md b/docs/系统配置接口使用示例.md index 4040491..21e8d36 100644 --- a/docs/系统配置接口使用示例.md +++ b/docs/系统配置接口使用示例.md @@ -92,10 +92,7 @@ GET /api/admin/config/link/defaults { "defaultQuantity": 50, "refreshInterval": 300, - "qrExpireTime": 14400, - "maxTimesPerBatch": 100, - "minQuantity": 10, - "maxQuantity": 1000 + "qrExpireTime": 14400 } ``` @@ -222,9 +219,6 @@ Content-Type: application/json - `link.default_quantity`: 链接生成默认奖励点数(默认:50) - `link.refresh_interval`: 链接刷新间隔秒数(默认:300) - `link.qr_expire_time`: 二维码过期时间秒数(默认:14400) -- `link.max_times_per_batch`: 每批次最大刷奖励次数(默认:100) -- `link.min_quantity`: 最小奖励点数(默认:10) -- `link.max_quantity`: 最大奖励点数(默认:1000) ### 脚本相关配置 - `script.server_url`: 脚本服务器地址 diff --git a/docs/系统配置说明.md b/docs/系统配置说明.md index 14bb628..8069523 100644 --- a/docs/系统配置说明.md +++ b/docs/系统配置说明.md @@ -23,9 +23,6 @@ - `link.default_quantity`: 每次副本的奖励点数(默认值:50) - `link.refresh_interval`: 链接刷新间隔,单位:秒(默认值:300) - `link.qr_expire_time`: 二维码过期时间,单位:秒(默认值:600) -- `link.max_times_per_batch`: 每批次最大打副本次数(默认值:100) -- `link.min_quantity`: 最小奖励点数(默认值:10) -- `link.max_quantity`: 最大奖励点数(默认值:1000) ### 脚本服务器相关配置 - `script.server_url`: 脚本服务器地址(默认值:http://36.138.184.60:12345) diff --git a/src/main/java/com/gameplatform/server/controller/admin/SystemConfigController.java b/src/main/java/com/gameplatform/server/controller/admin/SystemConfigController.java index de2bd43..f3773de 100644 --- a/src/main/java/com/gameplatform/server/controller/admin/SystemConfigController.java +++ b/src/main/java/com/gameplatform/server/controller/admin/SystemConfigController.java @@ -105,9 +105,6 @@ public class SystemConfigController { public final Integer defaultQuantity = systemConfigService.getDefaultQuantity(); public final Integer refreshInterval = systemConfigService.getRefreshInterval(); public final Integer qrExpireTime = systemConfigService.getQrExpireTime(); - public final Integer maxTimesPerBatch = systemConfigService.getMaxTimesPerBatch(); - public final Integer minQuantity = systemConfigService.getMinQuantity(); - public final Integer maxQuantity = systemConfigService.getMaxQuantity(); }); } diff --git a/src/main/java/com/gameplatform/server/service/admin/SystemConfigService.java b/src/main/java/com/gameplatform/server/service/admin/SystemConfigService.java index d0285d2..d1caabe 100644 --- a/src/main/java/com/gameplatform/server/service/admin/SystemConfigService.java +++ b/src/main/java/com/gameplatform/server/service/admin/SystemConfigService.java @@ -79,17 +79,9 @@ public class SystemConfigService { return getConfigValueAsInt("link.qr_expire_time", 600); } - public Integer getMaxTimesPerBatch() { - return getConfigValueAsInt("link.max_times_per_batch", 100); - } + - public Integer getMinQuantity() { - return getConfigValueAsInt("link.min_quantity", 10); - } - - public Integer getMaxQuantity() { - return getConfigValueAsInt("link.max_quantity", 1000); - } + public String getScriptServerUrl() { return getConfigValue("script.server_url", "http://36.138.184.60:12345");