Commit e0befba7 authored by 张永's avatar 张永

status 改code

parent 28480576
...@@ -122,8 +122,8 @@ public class Rjx extends LinkedHashMap<String, Object> { ...@@ -122,8 +122,8 @@ public class Rjx extends LinkedHashMap<String, Object> {
return Rjx.json().setCode(400).setMessage("NOTFOUND"); return Rjx.json().setCode(400).setMessage("NOTFOUND");
} }
public Rjx setCode(int status) { public Rjx setCode(Integer code) {
put("code", status); put("code", code);
return this; return this;
} }
...@@ -224,8 +224,8 @@ public class Rjx extends LinkedHashMap<String, Object> { ...@@ -224,8 +224,8 @@ public class Rjx extends LinkedHashMap<String, Object> {
} }
public boolean isOk() { public boolean isOk() {
Integer status = Util.objTo(this.get("status"), Integer.class, 0); Integer code = Util.objTo(this.get("code"), Integer.class, 0);
if(status == 200) { if(code == 200) {
return true; return true;
} else { } else {
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment