yun-zuoyi
许心洁 6 years ago
commit 37aed24f33

@ -55,7 +55,7 @@ public class BlockFormEnumUtil {
public static int codeOfValue(String code) { public static int codeOfValue(String code) {
int tmp = 1; int tmp = 1;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
if (values()[i].code.equals(code.toLowerCase())) { if (values()[i].code.toLowerCase().equals(code.toLowerCase())) {
tmp = values()[i].value; tmp = values()[i].value;
} }
} }

Loading…
Cancel
Save