From 889a7b96f84d0adceab94512c6174d2c03aca570 Mon Sep 17 00:00:00 2001 From: Ghost_chu Date: Mon, 2 Dec 2024 16:55:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=BA=E5=A4=B1=E7=9A=84?= =?UTF-8?q?=E5=8D=A0=E4=BD=8D=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../peerbanhelper/module/impl/webapi/PBHPushController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/ghostchu/peerbanhelper/module/impl/webapi/PBHPushController.java b/src/main/java/com/ghostchu/peerbanhelper/module/impl/webapi/PBHPushController.java index 6b9736e34..4ec8a9357 100644 --- a/src/main/java/com/ghostchu/peerbanhelper/module/impl/webapi/PBHPushController.java +++ b/src/main/java/com/ghostchu/peerbanhelper/module/impl/webapi/PBHPushController.java @@ -137,11 +137,11 @@ private void handlePushProviderTest(Context ctx) { if (testResult) { ctx.json(new StdResp(true, tl(locale(ctx), Lang.PUSH_PROVIDER_API_TEST_OK), null)); } else { - ctx.json(new StdResp(false, tl(locale(ctx), Lang.PUSH_PROVIDER_TEST_FAILED), null)); + ctx.json(new StdResp(false, tl(locale(ctx), Lang.PUSH_PROVIDER_TEST_FAILED, name, pushProvider.getConfigType()), null)); } } catch (Exception e) { log.error("Validate PushProvider failed", e); - ctx.json(new StdResp(false,e.getMessage(), null)); + ctx.json(new StdResp(false, e.getMessage(), null)); } }