From d01fed211d89f36b3ca11aa986b45bbcbff53b7f Mon Sep 17 00:00:00 2001 From: = <=> Date: Thu, 26 Aug 2021 22:43:38 +0800 Subject: [PATCH] =?UTF-8?q?'=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hai/config/HuiLianTongUnionCardConfig.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/hai-service/src/main/java/com/hai/config/HuiLianTongUnionCardConfig.java b/hai-service/src/main/java/com/hai/config/HuiLianTongUnionCardConfig.java index 5f55d14e..b5940b62 100644 --- a/hai-service/src/main/java/com/hai/config/HuiLianTongUnionCardConfig.java +++ b/hai-service/src/main/java/com/hai/config/HuiLianTongUnionCardConfig.java @@ -30,20 +30,21 @@ public class HuiLianTongUnionCardConfig { map.put("method", "qgk/queryCardByMobile"); String signCode = "F8E91A3C"; - Map dataJson = new HashMap<>(); - dataJson.put("userMobile", "17726395120"); - System.out.println(JSONObject.toJSONString(dataJson)); + Map dataMap = new HashMap<>(); + dataMap.put("userMobile", "17726395120"); + String dataJson = JSONObject.toJSONString(dataMap); - map.put("data", DESUtil.encrypt(signCode,JSONObject.toJSONString(dataJson))); - System.out.println(MapUtils.getString(map,"data")); + System.out.println(dataJson); + map.put("data", DESUtil.encrypt(signCode,dataJson)); + System.out.println(MapUtils.getString(map,"data")); String str = (MapUtils.getString(map,"accessCode") + signCode) + (MapUtils.getString(map,"requestId") + signCode) + (MapUtils.getString(map,"method") + signCode) + (MapUtils.getString(map,"data") + signCode); System.out.println(str); map.put("sign", com.hai.common.pay.util.MD5Util.MD5Encode(str, "UTF-8").toUpperCase()); System.out.println(MapUtils.getString(map, "sign")); - //return HttpsUtils.doPost("http://hltgz.com:4010/api/v2/execute.json", JSON.toJSONString(map)); - return null; + return HttpsUtils.doPost("http://hltgz.com:4010/api/v2/execute.json", JSON.toJSONString(map)); + // return null; }