|
|
@@ -64,11 +64,13 @@ public class PostUtil {
|
|
|
if (body != null) {
|
|
|
hisResponse = (HisResponseTO) JSONUtils.parse(body, HisResponseTO.class);
|
|
|
HisResponseTO.HisBodyDataTO hisBodyDataTO = hisResponse.getBody();
|
|
|
- if(hisBodyDataTO.getMsgCode()!=200){
|
|
|
+ if(null!=hisBodyDataTO){
|
|
|
hisResponse.setCode(hisBodyDataTO.getMsgCode());
|
|
|
+ hisResponse.setMsgCode(String.valueOf(hisBodyDataTO.getMsgCode()));
|
|
|
hisResponse.setMsg(hisBodyDataTO.getMsg());
|
|
|
- }else{
|
|
|
- hisResponse.setMsg(hisResponse.getBody().getMsg());
|
|
|
+ if(hisBodyDataTO.getMsgCode()==200){
|
|
|
+ hisResponse = hisResponse.setSuccess();
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
hisResponse.setMsgCode("-1");
|