|
@@ -3,6 +3,7 @@ package com.yingyangfly.baselib.net
|
|
|
import com.alibaba.android.arouter.launcher.ARouter
|
|
|
import com.yingyangfly.baselib.router.RouterUrlCommon
|
|
|
import com.yingyangfly.baselib.utils.JumpUtil
|
|
|
+import com.yingyangfly.baselib.utils.User
|
|
|
|
|
|
/**
|
|
|
* @author gold
|
|
@@ -28,6 +29,15 @@ open class BaseResp<T>(
|
|
|
func(data)
|
|
|
}
|
|
|
ResponseCode.TOKENLOSEEFFICACY -> {
|
|
|
+ User.saveMobile("")
|
|
|
+ User.saveIdCard("")
|
|
|
+ User.saveUserSex("")
|
|
|
+ User.saveUserAge("")
|
|
|
+ User.saveDoctorAvatar("")
|
|
|
+ User.saveAvatar("")
|
|
|
+ User.saveName("")
|
|
|
+ User.saveUserId("")
|
|
|
+ User.saveOrgCode("")
|
|
|
JumpUtil.jumpActivity(RouterUrlCommon.login)
|
|
|
}
|
|
|
else -> {
|