mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
update 内蒙古平台Service
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user