同步支持动态更新取件码长度,调整存量取件码以适配新长度并优化相关逻辑和文档。
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
| 字段名 | 类型 | 含义 | 示例 |
|
||||
| :--- | :--- | :--- | :--- |
|
||||
| `admin_password_hash` | string | 管理员密码的 bcrypt 哈希值 | `$2a$10$...` |
|
||||
| `pickup_code_length` | int | 自动生成的取件码长度(已包含在公共配置接口中) | `6` |
|
||||
| `pickup_code_length` | int | 自动生成的取件码长度。变更后系统将自动对存量取件码进行右侧补零或截取以适配新长度。 | `6` |
|
||||
| `pickup_fail_limit` | int | 单个 IP 对单个取件码尝试失败的最大次数,超过后将被临时封禁 | `5` |
|
||||
| `jwt_secret` | string | 用于签发管理端 JWT Token 的密钥,建议设置为复杂随机字符串 | `file-relay-secret` |
|
||||
|
||||
|
||||
@@ -1077,7 +1077,7 @@ const docTemplate = `{
|
||||
"type": "string"
|
||||
},
|
||||
"pickup_code_length": {
|
||||
"description": "取件码长度",
|
||||
"description": "取件码长度 (变更后将自动通过右侧补零或截取调整存量数据)",
|
||||
"type": "integer"
|
||||
},
|
||||
"pickup_fail_limit": {
|
||||
|
||||
@@ -1070,7 +1070,7 @@
|
||||
"type": "string"
|
||||
},
|
||||
"pickup_code_length": {
|
||||
"description": "取件码长度",
|
||||
"description": "取件码长度 (变更后将自动通过右侧补零或截取调整存量数据)",
|
||||
"type": "integer"
|
||||
},
|
||||
"pickup_fail_limit": {
|
||||
|
||||
@@ -113,7 +113,7 @@ definitions:
|
||||
description: JWT 签名密钥
|
||||
type: string
|
||||
pickup_code_length:
|
||||
description: 取件码长度
|
||||
description: 取件码长度 (变更后将自动通过右侧补零或截取调整存量数据)
|
||||
type: integer
|
||||
pickup_fail_limit:
|
||||
description: 取件失败尝试限制
|
||||
|
||||
Reference in New Issue
Block a user