From b319779e4e724b0bc4cbe0ebc9c5bdda55f10354 Mon Sep 17 00:00:00 2001 From: water_xu Date: Wed, 11 Sep 2024 09:50:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=BB=9A=E4=B8=AD=E5=8F=B0=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BB=A3=E7=A0=81=20=20=E5=88=A0=E9=99=A4Json?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E7=B1=BB=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/system/UsersController.java | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/zcloud/controller/system/UsersController.java b/src/main/java/com/zcloud/controller/system/UsersController.java index 1f786c0f..4c0ee501 100644 --- a/src/main/java/com/zcloud/controller/system/UsersController.java +++ b/src/main/java/com/zcloud/controller/system/UsersController.java @@ -1052,7 +1052,7 @@ public class UsersController extends BaseController { PageData pd = new PageData(); String errInfo = "success"; pd = this.getPageData(); - Map returnMap = null; + Map returnMap = new HashMap(); if (pd.getString("ISPUSH").equals("1")) { // ------联通人员定位删除人员用------ @@ -1066,9 +1066,11 @@ public class UsersController extends BaseController { for (Object key : set) { param.put(key.toString(),pd.getString(key.toString())); } - String UserDto = JSON.toJSONString(param); - String result = HttpClientUtilDoGet.sendHttpPost(tongBuUrl + "/docking/core/user/addOrUpdate", UserDto,param); - returnMap = (Map) JSON.parse(result); +// String UserDto = JSON.toJSONString(param); +// String result = HttpClientUtilDoGet.sendHttpPost(tongBuUrl + "/docking/core/user/addOrUpdate", UserDto,param); +// returnMap = (Map) JSON.parse(result); + // TODO com.alibaba.fastjson.JSONException: syntax error, pos 1 暂时不用人员中台 + returnMap.put("result", "success"); } if (pd.getString("ISPUSH").equals("0") || returnMap.get("result").equals("success")) { @@ -2502,8 +2504,11 @@ public class UsersController extends BaseController { } public Map doCheck(String USERNAME, String CARD_NO, String USER_ID) throws Exception { - String result = HttpClientUtilDoGet.sendHttpGet(tongBuUrl + "/docking/core/user/getCheck"+"?USERNAME="+USERNAME+"&CARD_NO="+CARD_NO+"&USER_ID="+USER_ID); - Map returnMap = (Map) JSON.parse(result); +// String result = HttpClientUtilDoGet.sendHttpGet(tongBuUrl + "/docking/core/user/getCheck"+"?USERNAME="+USERNAME+"&CARD_NO="+CARD_NO+"&USER_ID="+USER_ID); +// Map returnMap = (Map) JSON.parse(result); + // 人员中台暂时不用 + Map returnMap = new HashMap<>(); + returnMap.put("result", "success"); return returnMap; }