Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-android
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f06dc4de
authored
Nov 08, 2021
by
amateur
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
12b44f52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
app/src/main/assets/release/dist.zip
app/src/main/java/com/polysoft/nafmii/utils/UpdateUtils.java
app/src/main/assets/release/dist.zip
View file @
f06dc4d
No preview for this file type
app/src/main/java/com/polysoft/nafmii/utils/UpdateUtils.java
View file @
f06dc4d
...
@@ -22,10 +22,12 @@ public class UpdateUtils {
...
@@ -22,10 +22,12 @@ public class UpdateUtils {
protected
void
onResponse
(
StateEnum
state
,
UpdateVersion
data
,
String
message
)
{
protected
void
onResponse
(
StateEnum
state
,
UpdateVersion
data
,
String
message
)
{
if
(
state
==
StateEnum
.
OK
&&
null
!=
data
&&
!
TextUtils
.
isEmpty
(
data
.
getvNumber
()))
{
if
(
state
==
StateEnum
.
OK
&&
null
!=
data
&&
!
TextUtils
.
isEmpty
(
data
.
getvNumber
()))
{
ExecutorUtils
.
main
(()
->
UpdateDialog
.
show
(
manager
,
data
));
if
(
isUpdateApp
(
data
))
{
// 必升版本 不更新h5
ExecutorUtils
.
main
(()
->
UpdateDialog
.
show
(
manager
,
data
));
if
(
isMustUpdate
(
data
))
{
// 必升版本 不更新h5
return
;
if
(
isMustUpdate
(
data
))
{
return
;
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment