Commit f242d2aa authored by Steven杜宇's avatar Steven杜宇

// 版本更新

parent 8ad4e6d3
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
044414052BC3B9DE00784A14 /* YHServiceTableFootView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 044414042BC3B9DE00784A14 /* YHServiceTableFootView.swift */; }; 044414052BC3B9DE00784A14 /* YHServiceTableFootView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 044414042BC3B9DE00784A14 /* YHServiceTableFootView.swift */; };
0445E6AF2BE9CFF6003C52F9 /* YHAppVersionForceUpdateView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0445E6AE2BE9CFF6003C52F9 /* YHAppVersionForceUpdateView.swift */; }; 0445E6AF2BE9CFF6003C52F9 /* YHAppVersionForceUpdateView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0445E6AE2BE9CFF6003C52F9 /* YHAppVersionForceUpdateView.swift */; };
0445E6B12BE9E15C003C52F9 /* YHFindAppNewVersionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0445E6B02BE9E15C003C52F9 /* YHFindAppNewVersionView.swift */; }; 0445E6B12BE9E15C003C52F9 /* YHFindAppNewVersionView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0445E6B02BE9E15C003C52F9 /* YHFindAppNewVersionView.swift */; };
0445E6B42BEA15C4003C52F9 /* YHAppVersionManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0445E6B32BEA15C4003C52F9 /* YHAppVersionManager.swift */; };
044867B42BA1953B00DFAD4A /* YHCertificateFilterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 044867B32BA1953B00DFAD4A /* YHCertificateFilterView.swift */; }; 044867B42BA1953B00DFAD4A /* YHCertificateFilterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 044867B32BA1953B00DFAD4A /* YHCertificateFilterView.swift */; };
044867B62BA1A03800DFAD4A /* YHCertificateFilterItemCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 044867B52BA1A03800DFAD4A /* YHCertificateFilterItemCell.swift */; }; 044867B62BA1A03800DFAD4A /* YHCertificateFilterItemCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 044867B52BA1A03800DFAD4A /* YHCertificateFilterItemCell.swift */; };
044867B82BA1C75700DFAD4A /* YHCertificateUploadFailTipsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 044867B72BA1C75700DFAD4A /* YHCertificateUploadFailTipsView.swift */; }; 044867B82BA1C75700DFAD4A /* YHCertificateUploadFailTipsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 044867B72BA1C75700DFAD4A /* YHCertificateUploadFailTipsView.swift */; };
...@@ -487,6 +488,7 @@ ...@@ -487,6 +488,7 @@
044414042BC3B9DE00784A14 /* YHServiceTableFootView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHServiceTableFootView.swift; sourceTree = "<group>"; }; 044414042BC3B9DE00784A14 /* YHServiceTableFootView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHServiceTableFootView.swift; sourceTree = "<group>"; };
0445E6AE2BE9CFF6003C52F9 /* YHAppVersionForceUpdateView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHAppVersionForceUpdateView.swift; sourceTree = "<group>"; }; 0445E6AE2BE9CFF6003C52F9 /* YHAppVersionForceUpdateView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHAppVersionForceUpdateView.swift; sourceTree = "<group>"; };
0445E6B02BE9E15C003C52F9 /* YHFindAppNewVersionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHFindAppNewVersionView.swift; sourceTree = "<group>"; }; 0445E6B02BE9E15C003C52F9 /* YHFindAppNewVersionView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHFindAppNewVersionView.swift; sourceTree = "<group>"; };
0445E6B32BEA15C4003C52F9 /* YHAppVersionManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHAppVersionManager.swift; sourceTree = "<group>"; };
044867B32BA1953B00DFAD4A /* YHCertificateFilterView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateFilterView.swift; sourceTree = "<group>"; }; 044867B32BA1953B00DFAD4A /* YHCertificateFilterView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateFilterView.swift; sourceTree = "<group>"; };
044867B52BA1A03800DFAD4A /* YHCertificateFilterItemCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateFilterItemCell.swift; sourceTree = "<group>"; }; 044867B52BA1A03800DFAD4A /* YHCertificateFilterItemCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateFilterItemCell.swift; sourceTree = "<group>"; };
044867B72BA1C75700DFAD4A /* YHCertificateUploadFailTipsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateUploadFailTipsView.swift; sourceTree = "<group>"; }; 044867B72BA1C75700DFAD4A /* YHCertificateUploadFailTipsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHCertificateUploadFailTipsView.swift; sourceTree = "<group>"; };
...@@ -1028,6 +1030,7 @@ ...@@ -1028,6 +1030,7 @@
0445E6AC2BE9CF53003C52F9 /* VersionUpload(版本更新) */ = { 0445E6AC2BE9CF53003C52F9 /* VersionUpload(版本更新) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
0445E6B22BEA15A2003C52F9 /* M */,
0445E6AD2BE9CF95003C52F9 /* V */, 0445E6AD2BE9CF95003C52F9 /* V */,
); );
path = "VersionUpload(版本更新)"; path = "VersionUpload(版本更新)";
...@@ -1042,6 +1045,14 @@ ...@@ -1042,6 +1045,14 @@
path = V; path = V;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
0445E6B22BEA15A2003C52F9 /* M */ = {
isa = PBXGroup;
children = (
0445E6B32BEA15C4003C52F9 /* YHAppVersionManager.swift */,
);
path = M;
sourceTree = "<group>";
};
045EED972B9F171A0022A143 /* ServiceProcess(我的信息流程) */ = { 045EED972B9F171A0022A143 /* ServiceProcess(我的信息流程) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -2841,6 +2852,7 @@ ...@@ -2841,6 +2852,7 @@
A5C382CF2B5F9A9100C5E65C /* YHServiceCenterMainViewModel.swift in Sources */, A5C382CF2B5F9A9100C5E65C /* YHServiceCenterMainViewModel.swift in Sources */,
045EEEA52B9F171A0022A143 /* YHImageViewController.swift in Sources */, 045EEEA52B9F171A0022A143 /* YHImageViewController.swift in Sources */,
045EEEF32B9F171A0022A143 /* YHFamilyMemberInfoListVC.swift in Sources */, 045EEEF32B9F171A0022A143 /* YHFamilyMemberInfoListVC.swift in Sources */,
0445E6B42BEA15C4003C52F9 /* YHAppVersionManager.swift in Sources */,
04EA230C2BB5199D009DA928 /* YHDocumentToActionTableViewCell.swift in Sources */, 04EA230C2BB5199D009DA928 /* YHDocumentToActionTableViewCell.swift in Sources */,
A5ACE9572B4564F7002C94D2 /* YHBasicContentView.swift in Sources */, A5ACE9572B4564F7002C94D2 /* YHBasicContentView.swift in Sources */,
A517A4E52BB6C4BB000DEECD /* YHDocumentFileItemView.swift in Sources */, A517A4E52BB6C4BB000DEECD /* YHDocumentFileItemView.swift in Sources */,
......
//
// YHAppVersionManager.swift
// galaxy
//
// Created by edy on 2024/5/7.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHAppVersionManager {
static func goToAppStore() {
// 替换为你要打开的 App Store 中的应用程序链接
let appStoreLink = "https://itunes.apple.com/app/989673964"
// 使用该链接创建一个 URL 实例
if let url = URL(string: appStoreLink) {
if UIApplication.shared.canOpenURL(url) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
} else {
YHHUD.flash(message: "无法打开AppStore链接~")
}
}
}
}
...@@ -19,8 +19,6 @@ class YHAppVersionForceUpdateView: UIView { ...@@ -19,8 +19,6 @@ class YHAppVersionForceUpdateView: UIView {
lazy var blackMaskView: UIView = { lazy var blackMaskView: UIView = {
let view = UIView() let view = UIView()
view.backgroundColor = .alertMaskColor view.backgroundColor = .alertMaskColor
// let tap = UITapGestureRecognizer(target: self, action: #selector(dismiss))
// view.addGestureRecognizer(tap)
return view return view
}() }()
...@@ -161,10 +159,12 @@ class YHAppVersionForceUpdateView: UIView { ...@@ -161,10 +159,12 @@ class YHAppVersionForceUpdateView: UIView {
} }
@objc func didClickUpdateBtn() { @objc func didClickUpdateBtn() {
YHAppVersionManager.goToAppStore()
} }
@objc func didClickExitBtn() { @objc func didClickExitBtn() {
DispatchQueue.main.async {
exit(1)
}
} }
} }
...@@ -63,8 +63,6 @@ class YHFindAppNewVersionView: UIView { ...@@ -63,8 +63,6 @@ class YHFindAppNewVersionView: UIView {
lazy var blackMaskView: UIView = { lazy var blackMaskView: UIView = {
let view = UIView() let view = UIView()
view.backgroundColor = .alertMaskColor view.backgroundColor = .alertMaskColor
let tap = UITapGestureRecognizer(target: self, action: #selector(dismiss))
view.addGestureRecognizer(tap)
return view return view
}() }()
...@@ -271,6 +269,6 @@ class YHFindAppNewVersionView: UIView { ...@@ -271,6 +269,6 @@ class YHFindAppNewVersionView: UIView {
} }
@objc func didClickUpdateBtn() { @objc func didClickUpdateBtn() {
YHAppVersionManager.goToAppStore()
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment