mcy_new #1

Merged
wangyang merged 179 commits from mcy_new into master 2025-08-28 10:10:45 +08:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit 0ff6b16ba3 - Show all commits

View File

@ -27,8 +27,8 @@ class AppVersion extends Object {
@JsonKey(name: 'ftuType')
int ftuType;
@JsonKey(name: 'downloadUrl')
String? downloadUrl;
@JsonKey(name: 'appFileUrl')
String? appFileUrl;
@JsonKey(name: 'description')
String? description;
@ -41,10 +41,10 @@ class AppVersion extends Object {
this.appName,
this.version,
this.ftuType,
this.downloadUrl,
this.appFileUrl,
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);

View File

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