We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe431f commit 975cfdaCopy full SHA for 975cfda
weixin-java-common/src/main/java/me/chanjar/weixin/common/util/crypto/SHA1.java
@@ -30,6 +30,10 @@ public static String gen(String... arr) {
30
* 用&串接arr参数,生成sha1 digest
31
*/
32
public static String genWithAmple(String... arr) {
33
+ if (StringUtils.isAnyEmpty(arr)) {
34
+ throw new IllegalArgumentException("非法请求参数,有部分参数为空 : " + Arrays.toString(arr));
35
+ }
36
+
37
Arrays.sort(arr);
38
StringBuilder sb = new StringBuilder();
39
for (int i = 0; i < arr.length; i++) {
0 commit comments