This commit is contained in:
YAS\29473
2025-06-16 15:28:48 +08:00
parent 894f9bef89
commit a52f67638b
2 changed files with 10 additions and 1 deletions

View File

@@ -263,7 +263,7 @@ public class WeiWangKuaiDianController extends ThirdPartyBaseController {
*/ */
@PostMapping("/v1/query_start_charge") @PostMapping("/v1/query_start_charge")
public CommonResult<?> query_start_charge(HttpServletRequest request, @RequestBody CommonParamsDTO dto) { public CommonResult<?> query_start_charge(HttpServletRequest request, @RequestBody CommonParamsDTO dto) {
// logger.info("{}-请求启动充电 params:{}", platformName, JSON.toJSONString(dto)); logger.info("{}-请求启动充电 params:{}", platformName, JSON.toJSONString(dto));
try { try {
// 校验令牌 // 校验令牌
if (!verifyToken(request.getHeader("Authorization"))) { if (!verifyToken(request.getHeader("Authorization"))) {

View File

@@ -636,6 +636,7 @@ public class LianLianPlatformServiceImpl implements ThirdPartyPlatformService {
}*/ }*/
//正式环境站点149推送时报错,"Msg":"更新站点数据出错。站点ID:LC149,错误信息:站点的所属运营商不能修改", //正式环境站点149推送时报错,"Msg":"更新站点数据出错。站点ID:LC149,错误信息:站点的所属运营商不能修改",
// 正确运营商为"上海之禾"-057643496
if(StringUtils.equals("149", stationId)){ if(StringUtils.equals("149", stationId)){
//使用EquipmentOwnerID = MA1JLFUU8 //使用EquipmentOwnerID = MA1JLFUU8
info.setEquipmentOwnerID(Constants.OPERATORID_LIANLIAN); info.setEquipmentOwnerID(Constants.OPERATORID_LIANLIAN);
@@ -1069,6 +1070,13 @@ public class LianLianPlatformServiceImpl implements ThirdPartyPlatformService {
orderInfo.setStationID("LC658"); orderInfo.setStationID("LC658");
}*/ }*/
// 正确运营商"之禾"
if(StringUtils.equals("149", orderInfo.getStationID())){
//使用EquipmentOwnerID = MA1JLFUU8
orderInfo.setEquipmentOwnerID(Constants.OPERATORID_LIANLIAN);
}
// 获取令牌 // 获取令牌
String token = getToken(urlAddress, operatorId, operatorSecret, dataSecretIv, signSecret, dataSecret); String token = getToken(urlAddress, operatorId, operatorSecret, dataSecretIv, signSecret, dataSecret);
if (StringUtils.isBlank(token)) { if (StringUtils.isBlank(token)) {
@@ -1594,6 +1602,7 @@ public class LianLianPlatformServiceImpl implements ThirdPartyPlatformService {
succStat = 1; succStat = 1;
// 1- 此设备尚未插枪; // 1- 此设备尚未插枪;
failReason = 1; failReason = 1;
failReasonMsg = "此设备尚未插枪";
} }
vo.setEquipAuthSeq(equipAuthSeq); vo.setEquipAuthSeq(equipAuthSeq);
vo.setConnectorID(pileConnectorCode); vo.setConnectorID(pileConnectorCode);