This commit is contained in:
parent
cfe5c2fde8
commit
260a4df818
|
|
@ -53,4 +53,20 @@ class AppUpgradeVersion {
|
|||
String toString() {
|
||||
return 'AppUpgradeVersion(versionName: $versionName, versionBuildNumber: $versionBuildNumber, isForce: $isForce, downloadUrl: $downloadUrl, supportedMethods: $supportedMethods)';
|
||||
}
|
||||
|
||||
/// 获取App Store地址
|
||||
/// [id] App ID
|
||||
/// 返回 App Store地址
|
||||
/// itms-apps://itunes.apple.com/app/id1656489561
|
||||
static String getAppStoreByItunes(String id) {
|
||||
return 'itms-apps://itunes.apple.com/app/id$id';
|
||||
}
|
||||
|
||||
/// 获取App Store地址
|
||||
/// [id] App ID
|
||||
/// 返回 App Store地址
|
||||
/// https://apps.apple.com/cn/app/id1656489561
|
||||
static String getAppStoreByUrl(String id) {
|
||||
return 'https://apps.apple.com/cn/app/$id';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue