|
|
@@ -89,7 +89,7 @@ public class EnPlusServiceImpl implements EnPlusService {
|
|
|
if (0 == response.getRet()) {
|
|
|
return response;
|
|
|
} else {
|
|
|
- LOGGER.error("接口数据异常:url:{},params:{},返回信息:{}", url, params, response);
|
|
|
+ LOGGER.error("接口数据异常:url:{},/n params:{},token:{},返回信息:{}", url, params, token, response);
|
|
|
throw new BusinessException(ResponseEnum.EN_PLUS_API_EXCEPTION);
|
|
|
}
|
|
|
}
|
|
|
@@ -202,8 +202,8 @@ public class EnPlusServiceImpl implements EnPlusService {
|
|
|
public JSONObject queryEquipAuth(String connectorId, String equipAuthSeq) {
|
|
|
var param = """
|
|
|
{
|
|
|
- "EquipAuthSeq":%s,
|
|
|
- "ConnectorID":%s
|
|
|
+ "EquipAuthSeq":"%s",
|
|
|
+ "ConnectorID":"%s"
|
|
|
}
|
|
|
""".formatted(equipAuthSeq, connectorId);
|
|
|
var response = enPlusPost(EnPlusApi.EN_PLUS_QUERY_EQUIP_AUTH.getApi(), buildParams(param));
|
|
|
@@ -223,8 +223,8 @@ public class EnPlusServiceImpl implements EnPlusService {
|
|
|
public JSONObject queryEquipBusinessPolicy(String equipBizSeq, String connectorId) {
|
|
|
var param = """
|
|
|
{
|
|
|
- "EquipBizSeq":%s,
|
|
|
- "ConnectorID":%s
|
|
|
+ "EquipBizSeq":"%s",
|
|
|
+ "ConnectorID":"%s"
|
|
|
}
|
|
|
""".formatted(equipBizSeq, connectorId);
|
|
|
var response = enPlusPost(EnPlusApi.EN_PLUS_QUERY_EQUIP_BUSINESS_POLICY.getApi(), buildParams(param));
|
|
|
@@ -244,10 +244,10 @@ public class EnPlusServiceImpl implements EnPlusService {
|
|
|
public JSONObject queryStartCharge(String startChargeSeq, String connectorId, String qrCode, Integer amount) {
|
|
|
var param = """
|
|
|
{
|
|
|
- "StartChargeSeq":%s,
|
|
|
- "ConnectorID":%s,
|
|
|
- "QRCode":%s,
|
|
|
- "amount",%d
|
|
|
+ "StartChargeSeq":"%s",
|
|
|
+ "ConnectorID":"%s",
|
|
|
+ "QRCode":"%s",
|
|
|
+ "amount":%d
|
|
|
}
|
|
|
""".formatted(startChargeSeq, connectorId, qrCode, amount);
|
|
|
var response = enPlusPost(EnPlusApi.EN_PLUS_QUERY_START_CHARGE.getApi(), buildParams(param));
|
|
|
@@ -264,7 +264,7 @@ public class EnPlusServiceImpl implements EnPlusService {
|
|
|
public JSONObject queryEquipChargeStatus(String startChargeSeq) {
|
|
|
var param = """
|
|
|
{
|
|
|
- "StartChargeSeq":%s
|
|
|
+ "StartChargeSeq":"%s"
|
|
|
}
|
|
|
""".formatted(startChargeSeq);
|
|
|
var response = enPlusPost(EnPlusApi.EN_PLUS_QUERY_EQUIP_CHARGE_STATUS.getApi(), buildParams(param));
|
|
|
@@ -282,8 +282,8 @@ public class EnPlusServiceImpl implements EnPlusService {
|
|
|
public JSONObject queryStopCharge(String startChargeSeq, String connectorID) {
|
|
|
var param = """
|
|
|
{
|
|
|
- "StartChargeSeq":%s,
|
|
|
- "ConnectorID":%s
|
|
|
+ "StartChargeSeq":"%s",
|
|
|
+ "ConnectorID":"%s"
|
|
|
}
|
|
|
""".formatted(startChargeSeq, connectorID);
|
|
|
var response = enPlusPost(EnPlusApi.EN_PLUS_QUERY_STOP_CHARGE.getApi(), buildParams(param));
|