Skip to content

Commit

Permalink
Merge pull request #221 from gdjs2/master
Browse files Browse the repository at this point in the history
Using Arrays.toString() to deal with methods array
  • Loading branch information
TommyLemon committed Apr 22, 2021
2 parents 3c90844 + 68d94d4 commit 85ffb54
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public static Object invoke(@NotNull AbstractFunctionParser parser, @NotNull Str
String[] methods = StringUtil.split(row.getString("methods"));
List<String> ml = methods == null || methods.length <= 0 ? null : Arrays.asList(methods);
if (ml != null && ml.contains(parser.getMethod().toString()) == false) {
throw new UnsupportedOperationException("不允许 method = " + parser.getMethod() + " 的请求调用远程函数 " + fb.getMethod() + " ! 必须满足 method 在 " + methods + "内 !");
throw new UnsupportedOperationException("不允许 method = " + parser.getMethod() + " 的请求调用远程函数 " + fb.getMethod() + " ! 必须满足 method 在 " + Arrays.toString(methods) + "内 !");
}

try {
Expand Down

0 comments on commit 85ffb54

Please sign in to comment.