parent
7b1b5950fe
commit
3898ea5135
@ -1,33 +0,0 @@
|
||||
package UnitTest;
|
||||
|
||||
import Tools.MaxKb.Model.MaxKbModel;
|
||||
import Tools.MaxKb.Service.Impl.MaxKbImpl;
|
||||
import Tools.MaxKb.Util.MaxKbUtil;
|
||||
import cn.hutool.core.io.FileUtil;
|
||||
import com.jfinal.kit.PropKit;
|
||||
|
||||
public class TestMaxKB {
|
||||
public static void main(String[] args) {
|
||||
String filePath = "D:\\dsWork\\QingLong\\Doc\\MaxKB\\黄海的个人简历.txt";
|
||||
MaxKbModel mkm = new MaxKbModel();
|
||||
//加载配置文件
|
||||
PropKit.use("MaxKb.properties");
|
||||
//初始化数据库
|
||||
//MaxKbUtil.Init();
|
||||
|
||||
String apiKey = "application-83bfbc8a53b567a6d0e300680689655c";
|
||||
String applicationId = "ddea9cf9-fe45-4c4a-af67-cf095e3acd05";
|
||||
|
||||
//String chat_id = MaxKbImpl.getChatId(apiKey, applicationId);
|
||||
//System.out.println(chat_id);
|
||||
|
||||
String chat_id="33341d50-c718-11ef-a24e-0242ac120003";
|
||||
MaxKbImpl.sendChatMessage(apiKey, chat_id, FileUtil.readUtf8String(filePath));
|
||||
|
||||
// for (String s : result.split("\n")) {
|
||||
// //JSONObject jsonObject= JSONObject.parseObject(s);
|
||||
// //System.out.println(jsonObject.getString("data"));
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in new issue