|
@@ -13,6 +13,7 @@ import android.webkit.JavascriptInterface;
|
|
|
import com.alibaba.android.arouter.launcher.ARouter;
|
|
|
import com.cooleshow.base.common.WebApi;
|
|
|
import com.cooleshow.base.router.RouterPath;
|
|
|
+import com.cooleshow.base.utils.LogUtils;
|
|
|
import com.cooleshow.usercenter.constants.UserConstants;
|
|
|
import com.cooleshow.usercenter.helper.UserHelper;
|
|
|
import com.gyf.immersionbar.ImmersionBar;
|
|
@@ -54,11 +55,7 @@ public class JsInterfaceUtils extends Object {
|
|
|
return;
|
|
|
}
|
|
|
if ("login".equals(api)) {
|
|
|
- UserHelper.saveUserToken("");
|
|
|
- ARouter.getInstance().build(RouterPath.UserCenter.PATH_VERIFY_LOGIN)
|
|
|
- .withString(UserConstants.PHONE_NUM_KEY, UserHelper.getUserPhone())
|
|
|
- .addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK)
|
|
|
- .navigation();
|
|
|
+ UserHelper.logout();
|
|
|
activity.finish();
|
|
|
return;
|
|
|
}
|