Browse Source

删除知识库

master
赵鹏 1 month ago
parent
commit
f194e35c58
  1. 2
      yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/maxkb/MaxkbApiServiceImpl.java

2
yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/service/maxkb/MaxkbApiServiceImpl.java

@ -97,7 +97,7 @@ public class MaxkbApiServiceImpl implements MaxkbApiService {
List<String> ids = documentList.stream().map(o -> ((JSONObject) o).getStr("id")).collect(Collectors.toList());
JSONObject jsonObject = new JSONObject();
jsonObject.set("id_list",ids);
String s = HttpUtils.delete(configApi.getConfigValueByKey(MAXKB_ACCOUNT_URL) + "/api/dataset/"+id+"/document/web",getMaxkbHeager(), JSONUtil.toJsonStr(jsonObject));
String s = HttpUtils.delete(configApi.getConfigValueByKey(MAXKB_ACCOUNT_URL) + "/api/dataset/"+id+"/document/_bach",getMaxkbHeager(), JSONUtil.toJsonStr(jsonObject));
log.info("web知识库返回信息"+s);
}

Loading…
Cancel
Save