|
|
|
@ -62,6 +62,22 @@ public class HXResponse extends JSONObject { |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public HXResponse( String status,String msg,Object data,boolean isCode,String a) { |
|
|
|
|
if(isCode){ |
|
|
|
|
this.message = msg; |
|
|
|
|
this.data = data; |
|
|
|
|
this.code = status; |
|
|
|
|
this.put("message", this.message); |
|
|
|
|
this.put("status", this.code); |
|
|
|
|
this.put("data", this.data); |
|
|
|
|
}else{ |
|
|
|
|
this.message = msg; |
|
|
|
|
this.code = status; |
|
|
|
|
this.put("message", this.message); |
|
|
|
|
this.put("status", this.code); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isSuccess() { |
|
|
|
|
return StringUtils.equals(this.status, "0000"); |
|
|
|
|
} |
|
|
|
|