feat: 移除链接配置中的最大次数和数量限制

主要修改:
1. 从文档和相关服务中移除`link.max_times_per_batch`、`link.min_quantity`和`link.max_quantity`配置项,简化奖励点数的管理。
2. 更新相关文档,确保与代码一致性。

技术细节:
- 通过移除这些限制,提升了系统的灵活性,允许更自由的奖励点数配置。
This commit is contained in:
zyh
2025-08-27 22:16:19 +08:00
parent 87741fd8c2
commit 6bca300ff9
5 changed files with 3 additions and 26 deletions

View File

@@ -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`: 脚本服务器地址

View File

@@ -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`: 脚本服务器地址

View File

@@ -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

View File

@@ -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();
});
}

View File

@@ -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");