Commit e0befba7 authored by 张永's avatar 张永

status 改code

parent 28480576
......@@ -122,8 +122,8 @@ public class Rjx extends LinkedHashMap<String, Object> {
return Rjx.json().setCode(400).setMessage("NOTFOUND");
}
public Rjx setCode(int status) {
put("code", status);
public Rjx setCode(Integer code) {
put("code", code);
return this;
}
......@@ -224,8 +224,8 @@ public class Rjx extends LinkedHashMap<String, Object> {
}
public boolean isOk() {
Integer status = Util.objTo(this.get("status"), Integer.class, 0);
if(status == 200) {
Integer code = Util.objTo(this.get("code"), Integer.class, 0);
if(code == 200) {
return true;
} else {
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