From a692126618ac75f339110a7cba96fda78454e96f Mon Sep 17 00:00:00 2001 From: JiilingLee <462362@qq.com> Date: Sun, 8 Oct 2023 16:22:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=83=E6=95=B0=E6=8D=AE=E4=B8=8B=E8=BD=BDre?= =?UTF-8?q?sponse=E7=8A=B6=E6=80=81=E5=80=BC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../setting/service/passwords/PasswordsServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/service/passwords/PasswordsServiceImpl.java b/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/service/passwords/PasswordsServiceImpl.java index b478d09f..9249406a 100644 --- a/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/service/passwords/PasswordsServiceImpl.java +++ b/yudao-module-setting/yudao-module-setting-biz/src/main/java/cn/iocoder/yudao/module/setting/service/passwords/PasswordsServiceImpl.java @@ -65,7 +65,7 @@ public class PasswordsServiceImpl implements PasswordsService { JSONObject json2 = new JSONObject(); json2.put("code", "500"); json2.put("msg", "password is null!"); - httpResponse.setStatus(500); + httpResponse.setStatus(200); PrintWriter out = httpResponse.getWriter(); // 获取PrintWriter对象 out.println(json2.toString()); out.flush(); @@ -92,7 +92,7 @@ public class PasswordsServiceImpl implements PasswordsService { JSONObject json2 = new JSONObject(); json2.put("code", "500"); json2.put("msg", "passwordError!"); - httpResponse.setStatus(500); + httpResponse.setStatus(200); PrintWriter out = httpResponse.getWriter(); // 获取PrintWriter对象 out.println(json2.toString()); out.flush();