|
|
|
@@ -408,7 +408,7 @@ public class DmIntentController extends BaseController<DmIntentQuery, DmIntentDt |
|
|
|
String libName = ja.getJSONObject(0).getString("filename").split("\\.")[0]; |
|
|
|
// 添加到知识数据库 |
|
|
|
} |
|
|
|
if (ja.getJSONObject(0).containsKey("imageList")) { |
|
|
|
if (ja.getJSONObject(0).containsKey("imageList") && ja.getJSONObject(0).getJSONArray("imageList").size() > 0) { |
|
|
|
JSONObject joImage = new JSONObject(); |
|
|
|
joImage.put("imageUrl",ja.getJSONObject(0).getJSONArray("imageList").getString(0)); |
|
|
|
joImage.put("text",text); |
|
|
|
|