修复后端BUG
This commit is contained in:
+9
@@ -416,6 +416,15 @@ public class ImageVideoAsyncTaskService {
|
||||
|
||||
private String findDirectText(Object value, Set<String> names) {
|
||||
Object parsed = parsePossiblyJson(value);
|
||||
if (parsed instanceof Collection<?> collection) {
|
||||
for (Object child : collection) {
|
||||
String text = findDirectText(child, names);
|
||||
if (!text.isBlank()) {
|
||||
return text;
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
if (!(parsed instanceof Map<?, ?> map)) {
|
||||
return "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user