mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
add 推送联联平台设备状态变更接口
This commit is contained in:
@@ -160,24 +160,26 @@ public class SpringBootTestController {
|
||||
|
||||
@Test
|
||||
public void testLianLian(){
|
||||
// 获取令牌
|
||||
LianLianGetTokenDTO dto = new LianLianGetTokenDTO();
|
||||
dto.setOperatorId("987654321");
|
||||
dto.setOperatorSecret("1234567890abcdef");
|
||||
String token = lianLianService.getToken(dto);
|
||||
System.out.println("token:" + token);
|
||||
// // 获取令牌
|
||||
// LianLianGetTokenDTO dto = new LianLianGetTokenDTO();
|
||||
// dto.setOperatorId("987654321");
|
||||
// dto.setOperatorSecret("1234567890abcdef");
|
||||
// String token = lianLianService.getToken(dto);
|
||||
// System.out.println("token:" + token);
|
||||
//
|
||||
//
|
||||
// LianLianPushStationInfoDTO dto1 = LianLianPushStationInfoDTO.builder()
|
||||
// .OperatorID("987654321")
|
||||
// .DataSecret("1234567890abcdef")
|
||||
// .DataSecretIV("1234567890abcdef")
|
||||
// .SigSecret("1234567890abcdef")
|
||||
// .token(token)
|
||||
// .stationId(2L)
|
||||
//
|
||||
// .build();
|
||||
// lianLianService.pushStationInfo(dto1);
|
||||
|
||||
|
||||
LianLianPushStationInfoDTO dto1 = LianLianPushStationInfoDTO.builder()
|
||||
.OperatorID("987654321")
|
||||
.DataSecret("1234567890abcdef")
|
||||
.DataSecretIV("1234567890abcdef")
|
||||
.SigSecret("1234567890abcdef")
|
||||
.token(token)
|
||||
.stationId(2L)
|
||||
|
||||
.build();
|
||||
lianLianService.pushStationInfo(dto1);
|
||||
lianLianService.pushConnectorStatus("8800000000000101", "1");
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user