fix Config reload

This commit is contained in:
jxxghp
2025-06-03 23:08:58 +08:00
parent b4ed2880f7
commit bbfd8ca3f5
22 changed files with 338 additions and 280 deletions

View File

@@ -37,6 +37,7 @@ from app.utils.crypto import HashUtils
from app.utils.http import RequestUtils
from app.utils.security import SecurityUtils
from app.utils.url import UrlUtils
from core.event import eventmanager
from version import APP_VERSION
router = APIRouter()
@@ -230,6 +231,10 @@ def set_env_setting(env: dict,
}
)
if success_updates:
for key, value in success_updates.items():
eventmanager.send_event()
return schemas.Response(
success=True,
message="所有配置项更新成功",