|
@ -39,6 +39,7 @@ import org.jfw.util.jdbc.JdbcUtil;
|
39
|
39
|
import org.jfw.util.json.JsonService;
|
40
|
40
|
import org.jfw.util.log.LogFactory;
|
41
|
41
|
import org.jfw.util.log.Logger;
|
|
42
|
import org.jfw.util.reflect.TypeReference;
|
42
|
43
|
import org.jfw.util.web.fileupload.Item;
|
43
|
44
|
import org.jfw.util.web.fileupload.UploadItemIterator;
|
44
|
45
|
|
|
@ -404,26 +405,8 @@ public class AiTaskService {
|
404
|
405
|
return Collections.<String>emptyList();
|
405
|
406
|
}
|
406
|
407
|
if(ret.startsWith("[") && ret.endsWith("]")){
|
407
|
|
Object[] os=JsonService.fromJson(ret,Object[].class);
|
408
|
|
for(Object o:os){
|
409
|
|
if(o instanceof Collection<?>){
|
410
|
|
Collection<?> ll =(Collection<?>)o;
|
411
|
|
if(ll.size()==3){
|
412
|
|
Iterator<?> it = ll.iterator();
|
413
|
|
it.hasNext();
|
414
|
|
it.next();
|
415
|
|
it.hasNext();
|
416
|
|
it.next();
|
417
|
|
if(it.hasNext()){
|
418
|
|
Object so = it.next();
|
419
|
|
if(so instanceof String){
|
420
|
|
sret.add((String)so);
|
421
|
|
}
|
422
|
|
}
|
423
|
|
}
|
424
|
|
}
|
425
|
|
}
|
426
|
|
return sret;
|
|
408
|
return JsonService.fromJson(ret,new TypeReference<List<String>>() {
|
|
409
|
}.getType());
|
427
|
410
|
}
|
428
|
411
|
|
429
|
412
|
}
|