mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 联联平台查询站点状态接口
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user