修复map错误

This commit is contained in:
zhouhao
2018-07-05 10:13:03 +08:00
parent 4c0aa6536b
commit dd81913490

View File

@@ -79,7 +79,9 @@ public interface EnumDict<V> extends JSONSerializable {
if (v instanceof Collection) {
return ((Collection) v).stream().anyMatch(this::eq);
}
v = ((Map) v).getOrDefault("value", ((Map) v).get("text"));
if (v instanceof Map) {
v = ((Map) v).getOrDefault("value", ((Map) v).get("text"));
}
return this == v
|| getValue() == v
|| getValue().equals(v)