private void getValFromServer() {

    Utils.showProgressDialog(mContext);
    GetValRequest request =
        new GetValRequest(
            new Response.Listener<GetValResponse>() {
              @Override
              public void onResponse(GetValResponse response) {
                Utils.closeDialog();

                GetValResponse.ValDateGet data = response.data;
                time.start();
                String value = data.value;
                if (StringUtils.isEmpty(value)) {
                  return;
                } else {
                  try {
                    PreferencesService.getInstance(mContext).save("value", value);
                  } catch (Exception e) {
                    e.printStackTrace();
                  }
                }
              }
            },
            this);
    request.setCellphone(et_telNo.getText().toString());
    WebUtils.doPost(request);
  }
  private void connectToServerRegister() {
    if (checkInput()) {

      Utils.showProgressDialog(mContext);
      RegisterRequest request =
          new RegisterRequest(
              new Response.Listener<RegisterResponse>() {
                @Override
                public void onResponse(RegisterResponse response) {
                  Utils.closeDialog();
                  RegisterResponse.RegisterData data = response.data;
                  CnpcApplication.getInstance().setCheckID(data.id);
                  Utils.moveTo(mContext, SoftwareShareActivity.class);
                }
              },
              this);
      request.setOilId(sunyardoils.get(spinner.getSpinnerText()));
      request.setPassword(et_pwds.getText().toString().trim());
      request.setCellphone(et_telNo.getText().toString().trim());
      request.setValidationCode(et_valNo.getText().toString().trim());
      request.setLongitude(longitude);
      request.setLatitude(latitude);
      request.setAddressid(cityId);
      WebUtils.doPost(request);
    }
  }
  public void getSunyardOil() {
    Utils.showProgressDialog(mContext);
    SunyardOilRequset request =
        new SunyardOilRequset(
            new Response.Listener<SunyardOilResponse>() {
              @Override
              public void onResponse(SunyardOilResponse response) {
                Utils.closeDialog();
                ArrayList<SunyardOilResponse.SunyardOilDto> sunyardOilsData = response.data;
                wrapOilsData(sunyardOilsData);
              }
            },
            this);

    WebUtils.doPost(request);
  }