code: protected void other() {
          while (true) {
              Scanner scanner = new Scanner(System.in);
              if (scanner.hasNext()) {
                  String text = scanner.next();
                  if ("quit".equals(text) || "exit".equals(text)) {
                      api.logout();
                      break;
                  }
              }
              DateUtils.sleep(100);
          }
      }
docs: 启动后主线程干的事，子类可重写