mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-06-13 11:49:49 +08:00
update 调用联联平台接口
This commit is contained in:
@@ -166,42 +166,6 @@ public class LianLianServiceImpl implements LianLianService {
|
|||||||
|
|
||||||
System.out.println(result);
|
System.out.println(result);
|
||||||
|
|
||||||
// //加密
|
|
||||||
// byte[] encryptText = Cryptos.aesEncrypt(jsonString.getBytes(),
|
|
||||||
// dto.getDataSecret().getBytes(), dto.getDataSecretIV().getBytes());
|
|
||||||
// String encryptData = Encodes.encodeBase64(encryptText);
|
|
||||||
// System.out.println("加密数据:" + encryptData);
|
|
||||||
//
|
|
||||||
// Map<String, String> params = Maps.newLinkedHashMap();
|
|
||||||
// params.put("OperatorID", dto.getOperatorID());
|
|
||||||
// params.put("Data", encryptData);
|
|
||||||
// params.put("TimeStamp", DateUtils.parseDateToStr(DateUtils.YYYYMMDDHHMMSS, new Date()));
|
|
||||||
// params.put("Seq", "001");
|
|
||||||
// String sign = GBSignUtils.sign(params, dto.getSigSecret());
|
|
||||||
// params.put("Sig", sign);
|
|
||||||
//
|
|
||||||
// String postData = JSON.toJSONString(params);
|
|
||||||
// System.out.println("最终提交数据:" + postData);
|
|
||||||
//
|
|
||||||
// String hutoolRequest = HttpRequest.post(url).header("Authorization", "Bearer " + dto.getToken()).body(postData).execute().body();
|
|
||||||
//
|
|
||||||
// System.out.println("接收到返回数据:" + hutoolRequest);
|
|
||||||
//
|
|
||||||
// Map<String, String> map = (Map<String, String>) JSON.parse(hutoolRequest);
|
|
||||||
//
|
|
||||||
// String rData = map.get("Data");
|
|
||||||
//
|
|
||||||
// byte[] plainText = Cryptos.aesDecrypt(Encodes.decodeBase64(rData),
|
|
||||||
// dto.getDataSecret().getBytes(), dto.getDataSecretIV().getBytes());
|
|
||||||
// String plainData = "";
|
|
||||||
// try {
|
|
||||||
// plainData = new String(plainText, "UTF-8");
|
|
||||||
// } catch (Exception e) {
|
|
||||||
// e.printStackTrace();
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// System.out.println("解密数据:" + plainData);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args){
|
public static void main(String[] args){
|
||||||
|
|||||||
Reference in New Issue
Block a user