退出登录
This commit is contained in:
@@ -164,6 +164,12 @@ interface ApiService {
|
||||
suspend fun verifyOptionPassword(@Body request: VerifyOptionPasswordRequest): GetCodeBean<Any>
|
||||
|
||||
|
||||
/**
|
||||
* 退出登录
|
||||
*/
|
||||
@POST("/app/logout")
|
||||
suspend fun logout(): GetCodeBean<Any>
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -25,4 +25,9 @@ object UserinfoUtil {
|
||||
return gson.fromJson(string, LoginBean::class.java)
|
||||
}
|
||||
|
||||
fun clearUserInfo() {
|
||||
SPUtils.getInstance().remove(KEY_USER)
|
||||
ApiConfig.updateAuthToken("")
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user