|
|
|
@ -364,7 +364,7 @@ public class JcyrsqAddActivity extends BaseActivity implements View.OnClickListe
|
|
|
|
//token已过期
|
|
|
|
//token已过期
|
|
|
|
Log.i("token是否有效: ", "token已过期");
|
|
|
|
Log.i("token是否有效: ", "token已过期");
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(context, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(JcyrsqAddActivity.this, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
if (result) {
|
|
|
|
if (result) {
|
|
|
|
@ -376,7 +376,7 @@ public class JcyrsqAddActivity extends BaseActivity implements View.OnClickListe
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(context, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(JcyrsqAddActivity.this, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
if (result) {
|
|
|
|
if (result) {
|
|
|
|
@ -412,7 +412,7 @@ public class JcyrsqAddActivity extends BaseActivity implements View.OnClickListe
|
|
|
|
//token已过期
|
|
|
|
//token已过期
|
|
|
|
Log.i("token是否有效: ", "token已过期");
|
|
|
|
Log.i("token是否有效: ", "token已过期");
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(context, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(JcyrsqAddActivity.this, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
if (result) {
|
|
|
|
if (result) {
|
|
|
|
@ -424,7 +424,7 @@ public class JcyrsqAddActivity extends BaseActivity implements View.OnClickListe
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(context, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(JcyrsqAddActivity.this, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
if (result) {
|
|
|
|
if (result) {
|
|
|
|
@ -460,7 +460,7 @@ public class JcyrsqAddActivity extends BaseActivity implements View.OnClickListe
|
|
|
|
//token已过期
|
|
|
|
//token已过期
|
|
|
|
Log.i("token是否有效: ", "token已过期");
|
|
|
|
Log.i("token是否有效: ", "token已过期");
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(context, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(JcyrsqAddActivity.this, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
if (result) {
|
|
|
|
if (result) {
|
|
|
|
@ -472,7 +472,7 @@ public class JcyrsqAddActivity extends BaseActivity implements View.OnClickListe
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(context, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(JcyrsqAddActivity.this, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
if (result) {
|
|
|
|
if (result) {
|
|
|
|
@ -508,7 +508,7 @@ public class JcyrsqAddActivity extends BaseActivity implements View.OnClickListe
|
|
|
|
//token已过期
|
|
|
|
//token已过期
|
|
|
|
Log.i("token是否有效: ", "token已过期");
|
|
|
|
Log.i("token是否有效: ", "token已过期");
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(context, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(JcyrsqAddActivity.this, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
if (result) {
|
|
|
|
if (result) {
|
|
|
|
@ -520,7 +520,7 @@ public class JcyrsqAddActivity extends BaseActivity implements View.OnClickListe
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(context, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(JcyrsqAddActivity.this, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
if (result) {
|
|
|
|
if (result) {
|
|
|
|
@ -556,7 +556,7 @@ public class JcyrsqAddActivity extends BaseActivity implements View.OnClickListe
|
|
|
|
//token已过期
|
|
|
|
//token已过期
|
|
|
|
Log.i("token是否有效: ", "token已过期");
|
|
|
|
Log.i("token是否有效: ", "token已过期");
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(context, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(JcyrsqAddActivity.this, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
if (result) {
|
|
|
|
if (result) {
|
|
|
|
@ -568,7 +568,7 @@ public class JcyrsqAddActivity extends BaseActivity implements View.OnClickListe
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
if (userName.equals("") == false && password.equals("") == false) {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(context, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
AuthenticationLoginUtils.authenticationLogin(JcyrsqAddActivity.this, userName, password, new OnAuthenticationLoginListener() {
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
public void onAuthenticationSuccess(boolean result, String token) {
|
|
|
|
if (result) {
|
|
|
|
if (result) {
|
|
|
|
|