|
|
@ -30,20 +30,21 @@ public class HuiLianTongUnionCardConfig { |
|
|
|
map.put("method", "qgk/queryCardByMobile"); |
|
|
|
map.put("method", "qgk/queryCardByMobile"); |
|
|
|
|
|
|
|
|
|
|
|
String signCode = "F8E91A3C"; |
|
|
|
String signCode = "F8E91A3C"; |
|
|
|
Map<String,Object> dataJson = new HashMap<>(); |
|
|
|
Map<String,Object> dataMap = new HashMap<>(); |
|
|
|
dataJson.put("userMobile", "17726395120"); |
|
|
|
dataMap.put("userMobile", "17726395120"); |
|
|
|
System.out.println(JSONObject.toJSONString(dataJson)); |
|
|
|
String dataJson = JSONObject.toJSONString(dataMap); |
|
|
|
|
|
|
|
|
|
|
|
map.put("data", DESUtil.encrypt(signCode,JSONObject.toJSONString(dataJson))); |
|
|
|
System.out.println(dataJson); |
|
|
|
System.out.println(MapUtils.getString(map,"data")); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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); |
|
|
|
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); |
|
|
|
System.out.println(str); |
|
|
|
map.put("sign", com.hai.common.pay.util.MD5Util.MD5Encode(str, "UTF-8").toUpperCase()); |
|
|
|
map.put("sign", com.hai.common.pay.util.MD5Util.MD5Encode(str, "UTF-8").toUpperCase()); |
|
|
|
System.out.println(MapUtils.getString(map, "sign")); |
|
|
|
System.out.println(MapUtils.getString(map, "sign")); |
|
|
|
//return HttpsUtils.doPost("http://hltgz.com:4010/api/v2/execute.json", JSON.toJSONString(map));
|
|
|
|
return HttpsUtils.doPost("http://hltgz.com:4010/api/v2/execute.json", JSON.toJSONString(map)); |
|
|
|
return null; |
|
|
|
// return null;
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|