private void getCode() {
    if (mPhone == null || mPwd == null) {
      return;
    }
    String phone = mPhone.getText().toString().trim().replaceAll("\\s*", "");
    String code = mCountryCode.getText().toString().trim();
    //        String country = mCountry.getText().toString().trim();
    String pwd = mPwd.getText().toString().trim();

    checkPhoneNumber(phone, code, pwd);
    SMSSDK.getVerificationCode(code, phone);
  }
  /** 请求验证码后,跳转到验证码填写页面 */
  private void afterVerificationCodeRequested(boolean smart) {

    if (mPhone == null || mPwd == null || mCountryCode == null) {
      return;
    }

    String phone = mPhone.getText().toString().trim().replaceAll("\\s*", "");
    String code = mCountryCode.getText().toString().trim();
    String pwd = mPwd.getText().toString().trim();

    if (code.startsWith("+")) {
      code = code.substring(1);
    }

    Intent intent = new Intent(this, RegSecondActivity.class);
    intent.putExtra("phone", phone);
    intent.putExtra("pwd", pwd);
    intent.putExtra("countryCode", code);

    startActivity(intent);
  }