修复了clear指令不能正确清除相关记录的bug
修复了截取消息时出现的错误
This commit is contained in:
@@ -23,6 +23,7 @@ import plugin.utils.ConfigUtil;
|
||||
import java.io.IOException;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.Scanner;
|
||||
|
||||
import static kotlin.io.ConsoleKt.readln;
|
||||
|
||||
@@ -55,7 +56,7 @@ public class MyTest {
|
||||
HttpPost httpPost = new HttpPost("https://open.bigmodel.cn/api/paas/v4/assistant");
|
||||
httpPost.setHeaders(new Header[]{
|
||||
new BasicHeader("content-type", "application/json"),
|
||||
new BasicHeader("authorization", "")
|
||||
new BasicHeader("authorization", "f638f59b6b5961bbcd685c85caa0e7e7.Uz5nTEQS2X8LXcxF")
|
||||
});
|
||||
|
||||
JSONObject jsonObject = new JSONObject();
|
||||
@@ -181,10 +182,10 @@ public class MyTest {
|
||||
|
||||
@Test
|
||||
public void terminalTest() throws InterruptedException {
|
||||
MiraiConsoleTerminalLoader.INSTANCE.startAsDaemon(new MiraiConsoleImplementationTerminal());
|
||||
MiraiConsoleImplementationTerminal terminal = new MiraiConsoleImplementationTerminal();
|
||||
MiraiConsoleTerminalLoader.INSTANCE.startAsDaemon(terminal);
|
||||
PluginManager.INSTANCE.loadPlugin(App.INSTANCE);
|
||||
PluginManager.INSTANCE.enablePlugin(App.INSTANCE);
|
||||
while (true);
|
||||
new Scanner(System.in).nextLine();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user