1.0.6
This commit is contained in:
parent
7ecfeacef9
commit
52ad72ccf4
@ -10,9 +10,9 @@
|
||||
{
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"versionCode": 4,
|
||||
"versionName": "1.0.4",
|
||||
"outputFile": "管理端正式_release_1.0.4_202201240931.apk"
|
||||
"versionCode": 5,
|
||||
"versionName": "1.0.5",
|
||||
"outputFile": "管理端正式_release_1.0.5_202204041240.apk"
|
||||
}
|
||||
]
|
||||
}
|
Binary file not shown.
@ -51,6 +51,7 @@
|
||||
tools:text="地区:郑州市"></TextView>
|
||||
|
||||
<TextView
|
||||
android:visibility="gone"
|
||||
android:id="@+id/tvLx"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
@ -155,7 +156,6 @@
|
||||
android:layout_marginLeft="10dp"
|
||||
android:background="@null"
|
||||
android:ellipsize="end"
|
||||
android:maxLength="11"
|
||||
android:maxLines="1"
|
||||
android:text="通行证管理人:王宗亮"
|
||||
android:textColor="@color/black"></TextView>
|
||||
@ -181,7 +181,6 @@
|
||||
android:layout_marginLeft="10dp"
|
||||
android:background="@null"
|
||||
android:ellipsize="end"
|
||||
android:maxLength="11"
|
||||
android:maxLines="1"
|
||||
android:text="管理人电话:13000000005"
|
||||
android:textColor="@color/black"></TextView>
|
||||
@ -215,7 +214,6 @@
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:visibility="gone"
|
||||
android:id="@+id/tvZcdz"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
|
@ -40,8 +40,8 @@ project.ext {
|
||||
applicationId : "com.dahe.examine",
|
||||
minSdkVersion : 21,
|
||||
targetSdkVersion : 30,
|
||||
versionCode : 4,
|
||||
versionName : "1.0.4",
|
||||
versionCode : 5,
|
||||
versionName : "1.0.5",
|
||||
]
|
||||
dependencies = [
|
||||
"appcompat-v7" : "com.android.support:appcompat-v7:${SupportVersion}",
|
||||
|
@ -6,6 +6,17 @@ public class VersionBean implements Serializable {
|
||||
|
||||
|
||||
|
||||
private ParamsDao data;
|
||||
|
||||
public ParamsDao getData() {
|
||||
return data;
|
||||
}
|
||||
|
||||
public void setData(ParamsDao data) {
|
||||
this.data = data;
|
||||
}
|
||||
|
||||
public static class ParamsDao implements Serializable{
|
||||
private int versionId;
|
||||
private int version;
|
||||
private String versionName;
|
||||
@ -79,3 +90,4 @@ public class VersionBean implements Serializable {
|
||||
this.remark = remark;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ public class VersionUtils {
|
||||
Type type = new TypeToken<CommonResponseBean<VersionBean>>() {
|
||||
}.getType();
|
||||
CommonResponseBean<VersionBean> o = JsonUtils.getInstance().fromJson(result, type);
|
||||
VersionBean data = o.getData();
|
||||
VersionBean.ParamsDao data = o.getData().getData();
|
||||
if ("1".equals(data.getUpdateType())) {
|
||||
downloadBuilder.setForceRedownload(true);
|
||||
}else{
|
||||
@ -73,9 +73,9 @@ public class VersionUtils {
|
||||
}
|
||||
if (AppUtils.getAppVersionCode() < data.getVersion()) {
|
||||
UIData uiData = UIData.create();
|
||||
uiData.setTitle(o.getData().getVersionName());
|
||||
uiData.setDownloadUrl(o.getData().getApkUrl());
|
||||
uiData.setContent(o.getData().getIntroduce());
|
||||
uiData.setTitle(data.getVersionName());
|
||||
uiData.setDownloadUrl(data.getApkUrl());
|
||||
uiData.setContent(data.getIntroduce());
|
||||
return uiData;
|
||||
}
|
||||
if (isShow){
|
||||
|
Loading…
Reference in New Issue
Block a user