|
@@ -1501,9 +1501,13 @@ public class Jump2View {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public void gotoLoginAgain(String o) {
|
|
public void gotoLoginAgain(String o) {
|
|
|
|
|
+ String token = SpUtils.getToken(SheepApp.getInstance());
|
|
|
|
|
+ if(TextUtils.isEmpty(token)) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
SpUtils.saveToken(SheepApp.getInstance(), "");
|
|
SpUtils.saveToken(SheepApp.getInstance(), "");
|
|
|
DataUtil.getInstance().clearData();
|
|
DataUtil.getInstance().clearData();
|
|
|
- G.showToast(TextUtils.isEmpty(o) ? "请重新登录" : o);
|
|
|
|
|
|
|
+ G.showToast(TextUtils.isEmpty(o) ? "登录信息已过期,请重新登录" : o);
|
|
|
Intent intent = new Intent(SheepApp.getInstance(), ActMain.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
Intent intent = new Intent(SheepApp.getInstance(), ActMain.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
|
|
intent.putExtra("INTENT_ACTION", "LOGOUT");
|
|
intent.putExtra("INTENT_ACTION", "LOGOUT");
|
|
|
SheepApp.getInstance().startActivity(intent);
|
|
SheepApp.getInstance().startActivity(intent);
|