private void autoLogin() {
        String file = bot.config().assetsDir() + "/login.json";
        try {
            HotReload hotReload = WeChatUtils.fromJson(new FileReader(file), HotReload.class);
            hotReload.reLogin(bot);
        } catch (FileNotFoundException e) {
            this.login(false);
        }
    }
private void autoLogin() {
        String file = bot.config().assetsDir() + "/login.json";
        try {
            HotReload hotReload = WeChatUtils.fromJson(new FileReader(file), HotReload.class);
            hotReload.reLogin(bot);
        } catch (FileNotFoundException e) {
            this.login(false);
        }
    }
private void autoLogin ( ) { String file = bot . config ( ) . assetsDir ( ) + "/login.json" ; try { HotReload hotReload = WeChatUtils . fromJson ( new FileReader ( file ) , HotReload . class ) ; hotReload . reLogin ( bot ) ; } catch ( FileNotFoundException e ) { this . login ( false ) ; } }
自动登录
自动登录