src/main/java/io/github/biezhi/wechat/api/WeChatApiImpl.java
@Override
    public void logout() {
        if (bot.isRunning()) {
            String url = String.format("%s/webwxlogout", bot.session().getUrl());
            this.client.send(new StringRequest(url)
                    .add("redirect", 1)
                    .add("type", 1)
                    .add("sKey", bot.session().getSKey()));
            bot.setRunning(false);
        }
        this.logging = false;
        this.client.cookies().clear();
        String file = bot.config().assetsDir() + "/login.json";
        new File(file).delete();
    }
@Override
    public void logout() {
        if (bot.isRunning()) {
            String url = String.format("%s/webwxlogout", bot.session().getUrl());
            this.client.send(new StringRequest(url)
                    .add("redirect", 1)
                    .add("type", 1)
                    .add("sKey", bot.session().getSKey()));
            bot.setRunning(false);
        }
        this.logging = false;
        this.client.cookies().clear();
        String file = bot.config().assetsDir() + "/login.json";
        new File(file).delete();
    }
退出登录