feat: 移除链接配置中的最大次数和数量限制
主要修改: 1. 从文档和相关服务中移除`link.max_times_per_batch`、`link.min_quantity`和`link.max_quantity`配置项,简化奖励点数的管理。 2. 更新相关文档,确保与代码一致性。 技术细节: - 通过移除这些限制,提升了系统的灵活性,允许更自由的奖励点数配置。
This commit is contained in:
@@ -38,9 +38,6 @@
|
|||||||
- `link.default_quantity`: 默认奖励点数(50)
|
- `link.default_quantity`: 默认奖励点数(50)
|
||||||
- `link.refresh_interval`: 链接刷新间隔(300秒)
|
- `link.refresh_interval`: 链接刷新间隔(300秒)
|
||||||
- `link.qr_expire_time`: 二维码过期时间(600秒)
|
- `link.qr_expire_time`: 二维码过期时间(600秒)
|
||||||
- `link.max_times_per_batch`: 每批次最大刷奖励次数(100)
|
|
||||||
- `link.min_quantity`: 最小奖励点数(10)
|
|
||||||
- `link.max_quantity`: 最大奖励点数(1000)
|
|
||||||
|
|
||||||
**脚本服务器相关:**
|
**脚本服务器相关:**
|
||||||
- `script.server_url`: 脚本服务器地址
|
- `script.server_url`: 脚本服务器地址
|
||||||
|
|||||||
@@ -92,10 +92,7 @@ GET /api/admin/config/link/defaults
|
|||||||
{
|
{
|
||||||
"defaultQuantity": 50,
|
"defaultQuantity": 50,
|
||||||
"refreshInterval": 300,
|
"refreshInterval": 300,
|
||||||
"qrExpireTime": 14400,
|
"qrExpireTime": 14400
|
||||||
"maxTimesPerBatch": 100,
|
|
||||||
"minQuantity": 10,
|
|
||||||
"maxQuantity": 1000
|
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -222,9 +219,6 @@ Content-Type: application/json
|
|||||||
- `link.default_quantity`: 链接生成默认奖励点数(默认:50)
|
- `link.default_quantity`: 链接生成默认奖励点数(默认:50)
|
||||||
- `link.refresh_interval`: 链接刷新间隔秒数(默认:300)
|
- `link.refresh_interval`: 链接刷新间隔秒数(默认:300)
|
||||||
- `link.qr_expire_time`: 二维码过期时间秒数(默认:14400)
|
- `link.qr_expire_time`: 二维码过期时间秒数(默认:14400)
|
||||||
- `link.max_times_per_batch`: 每批次最大刷奖励次数(默认:100)
|
|
||||||
- `link.min_quantity`: 最小奖励点数(默认:10)
|
|
||||||
- `link.max_quantity`: 最大奖励点数(默认:1000)
|
|
||||||
|
|
||||||
### 脚本相关配置
|
### 脚本相关配置
|
||||||
- `script.server_url`: 脚本服务器地址
|
- `script.server_url`: 脚本服务器地址
|
||||||
|
|||||||
@@ -23,9 +23,6 @@
|
|||||||
- `link.default_quantity`: 每次副本的奖励点数(默认值:50)
|
- `link.default_quantity`: 每次副本的奖励点数(默认值:50)
|
||||||
- `link.refresh_interval`: 链接刷新间隔,单位:秒(默认值:300)
|
- `link.refresh_interval`: 链接刷新间隔,单位:秒(默认值:300)
|
||||||
- `link.qr_expire_time`: 二维码过期时间,单位:秒(默认值:600)
|
- `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)
|
- `script.server_url`: 脚本服务器地址(默认值:http://36.138.184.60:12345)
|
||||||
|
|||||||
@@ -105,9 +105,6 @@ public class SystemConfigController {
|
|||||||
public final Integer defaultQuantity = systemConfigService.getDefaultQuantity();
|
public final Integer defaultQuantity = systemConfigService.getDefaultQuantity();
|
||||||
public final Integer refreshInterval = systemConfigService.getRefreshInterval();
|
public final Integer refreshInterval = systemConfigService.getRefreshInterval();
|
||||||
public final Integer qrExpireTime = systemConfigService.getQrExpireTime();
|
public final Integer qrExpireTime = systemConfigService.getQrExpireTime();
|
||||||
public final Integer maxTimesPerBatch = systemConfigService.getMaxTimesPerBatch();
|
|
||||||
public final Integer minQuantity = systemConfigService.getMinQuantity();
|
|
||||||
public final Integer maxQuantity = systemConfigService.getMaxQuantity();
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -79,17 +79,9 @@ public class SystemConfigService {
|
|||||||
return getConfigValueAsInt("link.qr_expire_time", 600);
|
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() {
|
public String getScriptServerUrl() {
|
||||||
return getConfigValue("script.server_url", "http://36.138.184.60:12345");
|
return getConfigValue("script.server_url", "http://36.138.184.60:12345");
|
||||||
|
|||||||
Reference in New Issue
Block a user