修复规则优先级问题,修复添加自定义规则后需要重启服务器的问题

This commit is contained in:
Alex Yang
2025-12-21 21:11:58 +08:00
parent b2ec6c88a7
commit 30d47da022
16 changed files with 410 additions and 336 deletions

View File

@@ -1138,12 +1138,12 @@
},
"/shield/localrules": {
"get": {
"summary": "获取本地规则",
"description": "获取Shield的本地规则列表。",
"summary": "获取自定义规则",
"description": "获取Shield的自定义规则列表。"
"tags": ["shield"],
"responses": {
"200": {
"description": "成功获取本地规则",
"description": "成功获取自定义规则",
"content": {
"application/json": {
"schema": {
@@ -1166,8 +1166,8 @@
}
},
"post": {
"summary": "添加本地规则",
"description": "添加新的本地规则。",
"summary": "添加自定义规则",
"description": "添加新的自定义规则。",
"tags": ["shield"],
"requestBody": {
"required": true,
@@ -1205,8 +1205,8 @@
}
},
"delete": {
"summary": "删除本地规则",
"description": "删除指定ID的本地规则。",
"summary": "删除自定义规则",
"description": "删除指定ID的自定义规则。",
"tags": ["shield"],
"parameters": [
{
@@ -1500,7 +1500,7 @@
"blocked": true,
"blockRule": "example.com",
"blockRuleType": "exact_domain",
"blocksource": "本地规则",
"blocksource": "自定义规则",
"excluded": false,
"excludeRule": "",
"excludeRuleType": "",