mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-06-09 17:34:50 +08:00
修复map错误
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user