|
|
|
@ -48,11 +48,13 @@ public class LoginServiceImpl implements LoginService { |
|
|
|
JSONObject jsonObject = RequestUtils.GetData(path,hmap); |
|
|
|
log.debug("request result:"+jsonObject.toString()); |
|
|
|
|
|
|
|
String code = jsonObject.getString("code"); |
|
|
|
if(!"200".equals(code)){ |
|
|
|
String code = jsonObject.getString("resultCode"); |
|
|
|
if(!"00000000".equals(code)){ |
|
|
|
retmap.put("code",400); |
|
|
|
retmap.put("msg","请求错误"); |
|
|
|
}else{ |
|
|
|
retmap.put("code",200); |
|
|
|
retmap.put("msg","成功"); |
|
|
|
} |
|
|
|
JSONArray jsonArray = jsonObject.getJSONArray("data"); |
|
|
|
retmap.put("data",jsonArray); |
|
|
|
|