元数据下载response状态值修改

new
JiilingLee 1 year ago
parent acf030db46
commit a692126618

@ -65,7 +65,7 @@ public class PasswordsServiceImpl implements PasswordsService {
JSONObject json2 = new JSONObject(); JSONObject json2 = new JSONObject();
json2.put("code", "500"); json2.put("code", "500");
json2.put("msg", "password is null"); json2.put("msg", "password is null");
httpResponse.setStatus(500); httpResponse.setStatus(200);
PrintWriter out = httpResponse.getWriter(); // 获取PrintWriter对象 PrintWriter out = httpResponse.getWriter(); // 获取PrintWriter对象
out.println(json2.toString()); out.println(json2.toString());
out.flush(); out.flush();
@ -92,7 +92,7 @@ public class PasswordsServiceImpl implements PasswordsService {
JSONObject json2 = new JSONObject(); JSONObject json2 = new JSONObject();
json2.put("code", "500"); json2.put("code", "500");
json2.put("msg", "passwordError!"); json2.put("msg", "passwordError!");
httpResponse.setStatus(500); httpResponse.setStatus(200);
PrintWriter out = httpResponse.getWriter(); // 获取PrintWriter对象 PrintWriter out = httpResponse.getWriter(); // 获取PrintWriter对象
out.println(json2.toString()); out.println(json2.toString());
out.flush(); out.flush();

Loading…
Cancel
Save