|
|
|
@ -173,11 +173,11 @@ public class InteractiveServiceImpl implements IInteractiveService {
|
|
|
|
|
|
|
|
|
|
List<AnswerVO> result = JSONArray.parseArray(response.body(), AnswerVO.class); |
|
|
|
|
result.stream().filter(answerVO -> answerVO.getRunning() == 0).forEach(answerVO -> { |
|
|
|
|
String[] extras = answerVO.getExtra(); |
|
|
|
|
Object[] extras = answerVO.getExtra(); |
|
|
|
|
if(ObjectUtil.isEmpty(answerVO.getExtra()) || extras.length == 0){ |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
List<String> extraList = Arrays.stream(extras).map(extraResolveStrategyService::resolve).map(JSON::toJSONString).collect(Collectors.toList()); |
|
|
|
|
List<String> extraList = Arrays.stream(extras).map(Object::toString).map(extraResolveStrategyService::resolve).map(JSON::toJSONString).collect(Collectors.toList()); |
|
|
|
|
answerVO.setExtra(extraList.toArray(new String[extraList.size()])); |
|
|
|
|
}); |
|
|
|
|
return result; |
|
|
|
|