update 联联平台查询站点状态接口

This commit is contained in:
Lemon
2023-05-27 16:56:35 +08:00
parent b0973e131a
commit 57541bdcf9
5 changed files with 96 additions and 34 deletions

View File

@@ -232,11 +232,14 @@ public class SpringBootTestController {
String operatorId = "I4XLPQPV";
String operatorSecret = "3DSBTWHVIC6KVCKI";
// 请求data
Map<String, String> data = new HashMap<>();
// Map<String, String> data = new HashMap<>();
// data.put("OperatorID", operatorId);
// data.put("OperatorSecret", operatorSecret);
String dataJson = JSONUtil.toJsonStr(data);
// String dataJson = JSONUtil.toJsonStr(data);
JSONObject json = new JSONObject();
json.put("StationIDs", com.google.common.collect.Lists.newArrayList("1", "2"));
String dataJson = JSONObject.toJSONString(json);
// 加密
byte[] encryptText = Cryptos.aesEncrypt(dataJson.getBytes("UTF-8"),
operatorSecret.getBytes(), operatorSecret.getBytes());