|
|
@@ -79,16 +79,11 @@ public abstract class SheepSubscriber<T> implements Observer<T> {
|
|
|
//token 过期
|
|
|
if (throwable.code == 401) {
|
|
|
Activity curAct = SheepApp.getInstance().getCurrentActivity();
|
|
|
- if (curAct != null) {
|
|
|
- if (curAct instanceof LoginAct || UMConfigUtils.isNotNeedAct(curAct)) {//本身就是登录界面 或者可以不用登录就存在的界面,如:支付界面
|
|
|
- } else {
|
|
|
- Jump2View.getInstance().gotoLoginAgain();
|
|
|
- return;
|
|
|
- }
|
|
|
+ if (curAct instanceof LoginAct || UMConfigUtils.isNotNeedAct(curAct)) {//本身就是登录界面 或者可以不用登录就存在的界面,如:支付界面
|
|
|
} else {
|
|
|
-
|
|
|
+ Jump2View.getInstance().gotoLoginAgain();
|
|
|
+ return;
|
|
|
}
|
|
|
- return;
|
|
|
}
|
|
|
//未绑定手机号
|
|
|
if (throwable.code == 302 && baseMessage.getCode() == 30001) {
|