Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
LoxiaLiSA committed Aug 12, 2024
1 parent a10871d commit 1e218c2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ android {
applicationId "ceui.lisa.pixiv"
minSdkVersion 21
targetSdkVersion 34
versionCode 292
versionCode 296
versionName "4.1.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand Down
2 changes: 0 additions & 2 deletions app/src/main/java/ceui/lisa/http/TokenInterceptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ private boolean isTokenExpired(Response response) {
} else if(body.contains(TOKEN_ERROR_2)){
Shaft.sUserModel.getUser().setIs_login(false);
Local.saveUser(Shaft.sUserModel);
SessionManager.INSTANCE.updateSession(null);
Common.showToast(R.string.string_340);
Common.restart();
Common.showLog("isTokenExpired 111");
Expand Down Expand Up @@ -101,7 +100,6 @@ private synchronized String getNewToken(String tokenForThisRequest) throws IOExc
newUser.getUser().setIs_login(true);
}
Local.saveUser(newUser);
SessionManager.INSTANCE.updateSession(newUser);
Common.showLog("getNewToken 获取到了最新的 token:" + newUser.getAccess_token());
return newUser.getAccess_token();
} else {
Expand Down

0 comments on commit 1e218c2

Please sign in to comment.