From 6bca300ff9c6f74707c4cc6cb3adce71f294e6f9 Mon Sep 17 00:00:00 2001 From: zyh Date: Wed, 27 Aug 2025 22:16:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=A7=BB=E9=99=A4=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=AD=E7=9A=84=E6=9C=80=E5=A4=A7=E6=AC=A1?= =?UTF-8?q?=E6=95=B0=E5=92=8C=E6=95=B0=E9=87=8F=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 主要修改: 1. 从文档和相关服务中移除`link.max_times_per_batch`、`link.min_quantity`和`link.max_quantity`配置项,简化奖励点数的管理。 2. 更新相关文档,确保与代码一致性。 技术细节: - 通过移除这些限制,提升了系统的灵活性,允许更自由的奖励点数配置。 --- docs/数据库修改总结.md | 3 --- docs/系统配置接口使用示例.md | 8 +------- docs/系统配置说明.md | 3 --- .../controller/admin/SystemConfigController.java | 3 --- .../server/service/admin/SystemConfigService.java | 12 ++---------- 5 files changed, 3 insertions(+), 26 deletions(-) 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");