Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
android_vedio
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
android
android_vedio
Commits
cca05159
Commit
cca05159
authored
Jun 28, 2024
by
mengcuiguang2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
token失效,进入登录页
parent
9c1e942f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
build.gradle
video/app/build.gradle
+2
-2
GsonConverterFactory.java
...a/com/duben/myopicparadised/net/GsonConverterFactory.java
+9
-6
No files found.
video/app/build.gradle
View file @
cca05159
...
...
@@ -10,8 +10,8 @@ android {
applicationId
"com.duben.myopicparadised"
minSdkVersion
rootProject
.
ext
.
androidMinSdkVersion
targetSdkVersion
rootProject
.
ext
.
androidTargetSdkVersion
versionCode
71
2
versionName
"7.1.
2
"
versionCode
71
4
versionName
"7.1.
4
"
flavorDimensions
"default"
// dex突破65535的限制
...
...
video/app/src/main/java/com/duben/myopicparadised/net/GsonConverterFactory.java
View file @
cca05159
package
com
.
duben
.
myopicparadised
.
net
;
import
android.app.Activity
;
import
android.content.Intent
;
import
com.duben.myopicparadised.ui.activitys.AlipayLoginActivity
;
import
com.duben.myopicparadised.utils.ForegroundOrBackground
;
import
com.google.gson.Gson
;
import
com.duben.myopicparadised.common.Constant
;
import
com.duben.myopicparadised.manager.UserManager
;
...
...
@@ -94,12 +99,10 @@ public class GsonConverterFactory extends Converter.Factory {
if
(
code
==
401
)
{
try
{
UserManager
.
getInstance
().
userLogout
();
// Activity forwardActivity = ForegroundOrBackground.getApp_activity();
// if (forwardActivity != null) {
// if (!forwardActivity.isFinishing()) {
// forwardActivity.startActivity(new Intent(forwardActivity, LoginActivity.class));
// }
// }
Activity
forwardActivity
=
ForegroundOrBackground
.
getTopActivity
();
if
(
forwardActivity
!=
null
)
{
forwardActivity
.
startActivity
(
new
Intent
(
forwardActivity
,
AlipayLoginActivity
.
class
));
}
}
catch
(
Exception
e
)
{
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment