update 内蒙古平台Service

This commit is contained in:
Lemon
2025-04-08 16:06:57 +08:00
parent 62e7badbdd
commit f871234f8e

View File

@@ -135,7 +135,12 @@ public class HttpRequestUtil {
String encryptData = Encodes.encodeBase64(encryptText);
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("TimeStamp", DateUtils.parseDateToStr(DateUtils.YYYYMMDDHHMMSS, new Date()));
params.put("Seq", "001");
@@ -144,11 +149,7 @@ public class HttpRequestUtil {
if (ThirdPlatformTypeEnum.YONG_CHENG_BO_CHE.getTypeCode().equals(thirdPlatformType)) {
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);
params.put("Sig", sign);