|
@@ -787,8 +787,15 @@ public class BigModelServiceImpl implements IBigModelService
|
|
|
String content = String.valueOf(message.get("content"));
|
|
String content = String.valueOf(message.get("content"));
|
|
|
if(com.takai.common.utils.StringUtils.isNotEmpty(content)){
|
|
if(com.takai.common.utils.StringUtils.isNotEmpty(content)){
|
|
|
content = content.replace("*", "").replace("1.", "")
|
|
content = content.replace("*", "").replace("1.", "")
|
|
|
- .replace("2.", "").replace("3.", "");
|
|
|
|
|
- if(content.contains("\n")){
|
|
|
|
|
|
|
+ .replace("2.", "").replace("3.", "")
|
|
|
|
|
+ .replace("```json", "").replace("```", "");
|
|
|
|
|
+ if(isJsonObject(content)){
|
|
|
|
|
+ JSONObject conObj = JSON.parseObject(content);
|
|
|
|
|
+ JSONArray conArray = conObj.getJSONArray("问题");
|
|
|
|
|
+ if(conArray != null && conArray.size() > 0){
|
|
|
|
|
+ resultList.addAll(conArray.toJavaList(String.class));
|
|
|
|
|
+ }
|
|
|
|
|
+ } else if(content.contains("\n")){
|
|
|
String[] strings = content.split("\n");
|
|
String[] strings = content.split("\n");
|
|
|
List<String> listFromArray = new ArrayList<>(Arrays.asList(strings));
|
|
List<String> listFromArray = new ArrayList<>(Arrays.asList(strings));
|
|
|
resultList.addAll(listFromArray);
|
|
resultList.addAll(listFromArray);
|