mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 02:55:04 +08:00
停车平台计算sign
This commit is contained in:
@@ -21,11 +21,6 @@ public class ParkingUtil {
|
|||||||
.sorted(Map.Entry.comparingByKey())
|
.sorted(Map.Entry.comparingByKey())
|
||||||
.forEach(entry -> stringA.append(entry.getKey()).append("=").append(entry.getValue()).append("|"));
|
.forEach(entry -> stringA.append(entry.getKey()).append("=").append(entry.getValue()).append("|"));
|
||||||
|
|
||||||
// 去除最后的“|”符号
|
|
||||||
// if (stringA.length() > 0) {
|
|
||||||
// stringA.deleteCharAt(stringA.length() - 1);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Step 2: 过滤空值并按照ASCII码排序业务参数
|
// Step 2: 过滤空值并按照ASCII码排序业务参数
|
||||||
StringBuilder stringB = new StringBuilder();
|
StringBuilder stringB = new StringBuilder();
|
||||||
businessParams.entrySet().stream()
|
businessParams.entrySet().stream()
|
||||||
@@ -33,11 +28,6 @@ public class ParkingUtil {
|
|||||||
.sorted(Map.Entry.comparingByKey())
|
.sorted(Map.Entry.comparingByKey())
|
||||||
.forEach(entry -> stringB.append(entry.getKey()).append("=").append(entry.getValue()).append("|"));
|
.forEach(entry -> stringB.append(entry.getKey()).append("=").append(entry.getValue()).append("|"));
|
||||||
|
|
||||||
// 去除最后的“|”符号
|
|
||||||
// if (stringB.length() > 0) {
|
|
||||||
// stringB.deleteCharAt(stringB.length() - 1);
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Step 3: 拼接字符串A、B和机构密钥
|
// Step 3: 拼接字符串A、B和机构密钥
|
||||||
String stringC = stringA.toString() + stringB.toString() + secretKey;
|
String stringC = stringA.toString() + stringB.toString() + secretKey;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user