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();