8000 Merge pull request #221 from gdjs2/master · Tencent/APIJSON@85ffb54 · GitHub
[go: up one dir, main page]

Skip to content

Commit 85ffb54

Browse files
authored
Merge pull request #221 from gdjs2/master
Using Arrays.toString() to deal with methods array
2 parents 3c90844 + 68d94d4 commit 85ffb54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

APIJSONORM/src/main/java/apijson/orm/AbstractFunctionParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public static Object invoke(@NotNull AbstractFunctionParser parser, @NotNull Str
167167
String[] methods = StringUtil.split(row.getString("methods"));
168168
List<String> ml = methods == null || methods.length <= 0 ? null : Arrays.asList(methods);
169169
if (ml != null && ml.contains(parser.getMethod().toString()) == false) {
170< 50AA code class="diff-text syntax-highlighted-line deletion">-
throw new UnsupportedOperationException("不允许 method = " + parser.getMethod() + " 的请求调用远程函数 " + fb.getMethod() + " ! 必须满足 method 在 " + methods + "内 !");
170+
throw new UnsupportedOperationException("不允许 method = " + parser.getMethod() + " 的请求调用远程函数 " + fb.getMethod() + " ! 必须满足 method 在 " + Arrays.toString(methods) + "内 !");
171171
}
172172

173173
try {

0 commit comments

Comments
 (0)
0