|
|
@@ -124,7 +124,7 @@ async def detailed_health():
|
|
|
from app.tools.java_client import JavaClient
|
|
|
client = JavaClient()
|
|
|
jc = await client._get_client()
|
|
|
- resp = await jc.get("/api/")
|
|
|
+ resp = await jc.post("/api/admin-auth/login-by-password", json={})
|
|
|
if resp.status_code == 401:
|
|
|
status["components"]["java_backend"] = {"status": "ok", "detail": "需认证(正常)"}
|
|
|
elif resp.status_code == 200:
|