code: private OkHttpClient timeout(ApiRequest request) {
          int timeoutMillis = request.getTimeout() * 1000;
          if (client.readTimeoutMillis() == 0 || client.readTimeoutMillis() > timeoutMillis) {
              return client;
          }
          if (null != clientWithTimeout && clientWithTimeout.readTimeoutMillis() > timeoutMillis) {
              return clientWithTimeout;
          }
          clientWithTimeout = client.newBuilder().readTimeout(timeoutMillis + 1000, TimeUnit.MILLISECONDS).build();
          return clientWithTimeout;
      }
docs: 设置超时
  
  @param request
  @return