no message

This commit is contained in:
1147192855@qq.com 2024-08-19 11:19:24 +08:00
parent 3b11d2609e
commit 0ff6b16ba3
2 changed files with 5 additions and 5 deletions

View File

@ -27,8 +27,8 @@ class AppVersion extends Object {
@JsonKey(name: 'ftuType') @JsonKey(name: 'ftuType')
int ftuType; int ftuType;
@JsonKey(name: 'downloadUrl') @JsonKey(name: 'appFileUrl')
String? downloadUrl; String? appFileUrl;
@JsonKey(name: 'description') @JsonKey(name: 'description')
String? description; String? description;
@ -41,10 +41,10 @@ class AppVersion extends Object {
this.appName, this.appName,
this.version, this.version,
this.ftuType, this.ftuType,
this.downloadUrl, this.appFileUrl,
this.description, this.description,
) { ) {
if (downloadUrl != null) downloadUrl = RequestConfig.imgUrl + downloadUrl!; if (appFileUrl != null) appFileUrl = RequestConfig.imgUrl + appFileUrl!;
} }
factory AppVersion.fromJson(Map<String, dynamic> srcJson) => _$AppVersionFromJson(srcJson); factory AppVersion.fromJson(Map<String, dynamic> srcJson) => _$AppVersionFromJson(srcJson);

View File

@ -51,7 +51,7 @@ class UpgradeLogic extends GetxController with RequestToolMixin {
// String buildNumber = packageInfo.buildNumber; // // String buildNumber = packageInfo.buildNumber; //
Map json = { Map json = {
'downloadPath': Platform.isWindows ? '' : result.downloadUrl, 'downloadPath': Platform.isWindows ? '' : result.appFileUrl,
'version': result.version, 'version': result.version,
'systemType': deviceType, 'systemType': deviceType,
'description': result.description ?? 'APP新版本更新' 'description': result.description ?? 'APP新版本更新'