mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-18 00:38:33 +08:00
update 内蒙古平台Service
This commit is contained in:
@@ -135,7 +135,12 @@ public class HttpRequestUtil {
|
|||||||
String encryptData = Encodes.encodeBase64(encryptText);
|
String encryptData = Encodes.encodeBase64(encryptText);
|
||||||
|
|
||||||
Map<String, String> params = Maps.newLinkedHashMap();
|
Map<String, String> params = Maps.newLinkedHashMap();
|
||||||
params.put("OperatorID", operatorId);
|
if (ThirdPlatformTypeEnum.NEI_MENG_GU_PLATFORM.getTypeCode().equals(thirdPlatformType)) {
|
||||||
|
// 内蒙古平台
|
||||||
|
params.put("PlatformID", operatorId);
|
||||||
|
}else {
|
||||||
|
params.put("OperatorID", operatorId);
|
||||||
|
}
|
||||||
params.put("Data", encryptData);
|
params.put("Data", encryptData);
|
||||||
params.put("TimeStamp", DateUtils.parseDateToStr(DateUtils.YYYYMMDDHHMMSS, new Date()));
|
params.put("TimeStamp", DateUtils.parseDateToStr(DateUtils.YYYYMMDDHHMMSS, new Date()));
|
||||||
params.put("Seq", "001");
|
params.put("Seq", "001");
|
||||||
@@ -144,11 +149,7 @@ public class HttpRequestUtil {
|
|||||||
if (ThirdPlatformTypeEnum.YONG_CHENG_BO_CHE.getTypeCode().equals(thirdPlatformType)) {
|
if (ThirdPlatformTypeEnum.YONG_CHENG_BO_CHE.getTypeCode().equals(thirdPlatformType)) {
|
||||||
params.put("Portname", "wcc-pro");
|
params.put("Portname", "wcc-pro");
|
||||||
}
|
}
|
||||||
if (ThirdPlatformTypeEnum.NEI_MENG_GU_PLATFORM.getTypeCode().equals(thirdPlatformType)) {
|
|
||||||
// 内蒙古平台
|
|
||||||
params.remove("OperatorID");
|
|
||||||
params.put("PlatformID", operatorId);
|
|
||||||
}
|
|
||||||
|
|
||||||
String sign = GBSignUtils.sign(params, sigSecret);
|
String sign = GBSignUtils.sign(params, sigSecret);
|
||||||
params.put("Sig", sign);
|
params.put("Sig", sign);
|
||||||
|
|||||||
Reference in New Issue
Block a user