|
@@ -484,9 +484,20 @@ public class RestUtil {
|
|
|
JSONObject result = new JSONObject();
|
|
|
try {
|
|
|
JSONObject queryCriteria = JSON.parseObject(param);
|
|
|
- JSONObject object = PersonUtil.Login(queryCriteria);
|
|
|
- result.put("Content", object);
|
|
|
- result.put("Result", "success");
|
|
|
+ String post_result = PersonUtil.Login(queryCriteria);
|
|
|
+ String respMsg=JSON.parseObject(post_result).getString("respMsg");
|
|
|
+ JSONObject resultJSON = JSON.parseObject(post_result).getJSONObject("content");
|
|
|
+ result.put("Content", resultJSON);
|
|
|
+ if(respMsg.equals("success"))
|
|
|
+ {
|
|
|
+ result.put("Result", "success");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ result.put("Result", "failure");
|
|
|
+ result.put("ResultMsg", respMsg);
|
|
|
+ result.put("ResultCode", JSON.parseObject(post_result).getString("respCode"));
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
log.error(e.getMessage(), e);
|
|
|
String message = LogUtil.GetExceptionStackTrace(e);
|