Commit 877d41f0 authored by Steven杜宇's avatar Steven杜宇

// 实名

parent 495b9964
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
0419A0A02C48FC7D00A5FCFA /* YHInvitationWithGiftsSecondTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0419A09F2C48FC7D00A5FCFA /* YHInvitationWithGiftsSecondTableViewCell.swift */; }; 0419A0A02C48FC7D00A5FCFA /* YHInvitationWithGiftsSecondTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0419A09F2C48FC7D00A5FCFA /* YHInvitationWithGiftsSecondTableViewCell.swift */; };
0419A0A22C49099A00A5FCFA /* YHInvitationWithGiftsShareBottomView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0419A0A12C49099A00A5FCFA /* YHInvitationWithGiftsShareBottomView.swift */; }; 0419A0A22C49099A00A5FCFA /* YHInvitationWithGiftsShareBottomView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0419A0A12C49099A00A5FCFA /* YHInvitationWithGiftsShareBottomView.swift */; };
0419A0A42C49184300A5FCFA /* YHInvitationNumberItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0419A0A32C49184300A5FCFA /* YHInvitationNumberItemView.swift */; }; 0419A0A42C49184300A5FCFA /* YHInvitationNumberItemView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0419A0A32C49184300A5FCFA /* YHInvitationNumberItemView.swift */; };
042092B32C9D4884001184F0 /* YHURLEncodeHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 042092B22C9D4884001184F0 /* YHURLEncodeHelper.swift */; };
042092B52C9D48FC001184F0 /* YHRealNameHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 042092B42C9D48FC001184F0 /* YHRealNameHelper.swift */; };
04213B202C47ADEA00797900 /* ATAuthSDK_D.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04213B1F2C47ADEA00797900 /* ATAuthSDK_D.framework */; }; 04213B202C47ADEA00797900 /* ATAuthSDK_D.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04213B1F2C47ADEA00797900 /* ATAuthSDK_D.framework */; };
04213B212C47AE0100797900 /* ATAuthSDK_D.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 04213B1F2C47ADEA00797900 /* ATAuthSDK_D.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 04213B212C47AE0100797900 /* ATAuthSDK_D.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 04213B1F2C47ADEA00797900 /* ATAuthSDK_D.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
04213B232C48B7F700797900 /* YHIdentityTabBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04213B222C48B7F700797900 /* YHIdentityTabBar.swift */; }; 04213B232C48B7F700797900 /* YHIdentityTabBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 04213B222C48B7F700797900 /* YHIdentityTabBar.swift */; };
...@@ -861,6 +863,8 @@ ...@@ -861,6 +863,8 @@
0419A09F2C48FC7D00A5FCFA /* YHInvitationWithGiftsSecondTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHInvitationWithGiftsSecondTableViewCell.swift; sourceTree = "<group>"; }; 0419A09F2C48FC7D00A5FCFA /* YHInvitationWithGiftsSecondTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHInvitationWithGiftsSecondTableViewCell.swift; sourceTree = "<group>"; };
0419A0A12C49099A00A5FCFA /* YHInvitationWithGiftsShareBottomView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHInvitationWithGiftsShareBottomView.swift; sourceTree = "<group>"; }; 0419A0A12C49099A00A5FCFA /* YHInvitationWithGiftsShareBottomView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHInvitationWithGiftsShareBottomView.swift; sourceTree = "<group>"; };
0419A0A32C49184300A5FCFA /* YHInvitationNumberItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHInvitationNumberItemView.swift; sourceTree = "<group>"; }; 0419A0A32C49184300A5FCFA /* YHInvitationNumberItemView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHInvitationNumberItemView.swift; sourceTree = "<group>"; };
042092B22C9D4884001184F0 /* YHURLEncodeHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHURLEncodeHelper.swift; sourceTree = "<group>"; };
042092B42C9D48FC001184F0 /* YHRealNameHelper.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHRealNameHelper.swift; sourceTree = "<group>"; };
04213B1F2C47ADEA00797900 /* ATAuthSDK_D.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ATAuthSDK_D.framework; path = framework/ATAuthSDK_D.framework; sourceTree = "<group>"; }; 04213B1F2C47ADEA00797900 /* ATAuthSDK_D.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = ATAuthSDK_D.framework; path = framework/ATAuthSDK_D.framework; sourceTree = "<group>"; };
04213B222C48B7F700797900 /* YHIdentityTabBar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHIdentityTabBar.swift; sourceTree = "<group>"; }; 04213B222C48B7F700797900 /* YHIdentityTabBar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHIdentityTabBar.swift; sourceTree = "<group>"; };
04213B242C48C15400797900 /* YHHomeIdentityViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHHomeIdentityViewController.swift; sourceTree = "<group>"; }; 04213B242C48C15400797900 /* YHHomeIdentityViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YHHomeIdentityViewController.swift; sourceTree = "<group>"; };
...@@ -1753,6 +1757,7 @@ ...@@ -1753,6 +1757,7 @@
041892232C91BCF100B9FB94 /* YHResignRoundCellType.swift */, 041892232C91BCF100B9FB94 /* YHResignRoundCellType.swift */,
04F243302C953A3A00DF2C74 /* YHResignDocumentType.swift */, 04F243302C953A3A00DF2C74 /* YHResignDocumentType.swift */,
041892292C91CB2500B9FB94 /* YHResignDocumentStatus.swift */, 041892292C91CB2500B9FB94 /* YHResignDocumentStatus.swift */,
042092B42C9D48FC001184F0 /* YHRealNameHelper.swift */,
); );
path = M; path = M;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -1801,6 +1806,14 @@ ...@@ -1801,6 +1806,14 @@
path = V; path = V;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
042092B12C9D4830001184F0 /* URLHelper */ = {
isa = PBXGroup;
children = (
042092B22C9D4884001184F0 /* YHURLEncodeHelper.swift */,
);
path = URLHelper;
sourceTree = "<group>";
};
04256DD72C72D9C200A37BA4 /* AppointCertificate(3 赴港办证预约) */ = { 04256DD72C72D9C200A37BA4 /* AppointCertificate(3 赴港办证预约) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -3988,6 +4001,7 @@ ...@@ -3988,6 +4001,7 @@
A5ACE8EE2B4564F7002C94D2 /* Tools */ = { A5ACE8EE2B4564F7002C94D2 /* Tools */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
042092B12C9D4830001184F0 /* URLHelper */,
A5765B242C771F51002CD3C1 /* RangeDatePicker */, A5765B242C771F51002CD3C1 /* RangeDatePicker */,
049663B62BF60BB7003C8295 /* CustomRefreshHeader */, 049663B62BF60BB7003C8295 /* CustomRefreshHeader */,
0488518B2BF5FAA800C4E32D /* Upload */, 0488518B2BF5FAA800C4E32D /* Upload */,
...@@ -4723,6 +4737,7 @@ ...@@ -4723,6 +4737,7 @@
04F5F86C2C1A9B52004A463C /* YHOtherServiceListViewController.swift in Sources */, 04F5F86C2C1A9B52004A463C /* YHOtherServiceListViewController.swift in Sources */,
04CC2EF02BC3DDB2000305DD /* YHServiceBannerView.swift in Sources */, 04CC2EF02BC3DDB2000305DD /* YHServiceBannerView.swift in Sources */,
A598E9DA2C7CA28200F84739 /* YHTravelDocsPreparationListCell.swift in Sources */, A598E9DA2C7CA28200F84739 /* YHTravelDocsPreparationListCell.swift in Sources */,
042092B32C9D4884001184F0 /* YHURLEncodeHelper.swift in Sources */,
045EEEA32B9F171A0022A143 /* YHCompanyModel.swift in Sources */, 045EEEA32B9F171A0022A143 /* YHCompanyModel.swift in Sources */,
044EE22B2C91683800A2FE3A /* YHServiceCenterViewModel.swift in Sources */, 044EE22B2C91683800A2FE3A /* YHServiceCenterViewModel.swift in Sources */,
0430E64E2C733477000511E2 /* YHAdopterIncomeDetailViewController.swift in Sources */, 0430E64E2C733477000511E2 /* YHAdopterIncomeDetailViewController.swift in Sources */,
...@@ -5278,6 +5293,7 @@ ...@@ -5278,6 +5293,7 @@
0430E6522C733D82000511E2 /* YHAdopterIncomeFileTableViewCell.swift in Sources */, 0430E6522C733D82000511E2 /* YHAdopterIncomeFileTableViewCell.swift in Sources */,
045EEE8B2B9F171A0022A143 /* YHPreviewMainApplicantInfoViewController.swift in Sources */, 045EEE8B2B9F171A0022A143 /* YHPreviewMainApplicantInfoViewController.swift in Sources */,
04256E162C75BD2700A37BA4 /* YHPayMemberSectionItem.swift in Sources */, 04256E162C75BD2700A37BA4 /* YHPayMemberSectionItem.swift in Sources */,
042092B52C9D48FC001184F0 /* YHRealNameHelper.swift in Sources */,
045EEE922B9F171A0022A143 /* YHPreviewInfoNameAndSubNameItemView.swift in Sources */, 045EEE922B9F171A0022A143 /* YHPreviewInfoNameAndSubNameItemView.swift in Sources */,
0430E6482C731B0A000511E2 /* YHAdopterAddNewTableViewCell.swift in Sources */, 0430E6482C731B0A000511E2 /* YHAdopterAddNewTableViewCell.swift in Sources */,
A5EB6C742C69FB9A0081FB6C /* YHOfficailLetterColledtionCell.swift in Sources */, A5EB6C742C69FB9A0081FB6C /* YHOfficailLetterColledtionCell.swift in Sources */,
......
//
// YHRealNameHelper.swift
// galaxy
//
// Created by edy on 2024/9/20.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHRealNameHelper: NSObject {
}
//
// YHURLEncodeHelper.swift
// galaxy
//
// Created by edy on 2024/9/20.
// Copyright © 2024 https://www.galaxy-immi.com. All rights reserved.
//
import UIKit
class YHURLEncodeHelper {
// URL 编码
class func urlEncodedString(_ str: String) -> String? {
let allowedCharacterSet = CharacterSet(charactersIn: "!*'();:@&=+$,/?%#[]").inverted
return str.addingPercentEncoding(withAllowedCharacters: allowedCharacterSet)
}
// URL 解码
class func urlDecodedString(_ str: String) -> String? {
return str.removingPercentEncoding
}
// 检查是否为有效的 URL
class func isUrlAddress(_ url: String) -> Bool {
let regex = "((http[s]?|ftp)://[a-zA-Z0-9\\.\\-]+\\.([a-zA-Z]{2,4})(:\\d+)?(/[a-zA-Z0-9\\.\\-~!@#$%^&*+?:_/=<>]*)?)|(www\\.[a-zA-Z0-9\\.\\-]+\\.([a-zA-Z]{2,4})(:\\d+)?(/[a-zA-Z0-9\\.\\-~!@#$%^&*+?:_/=<>]*)?)"
let urlPredicate = NSPredicate(format: "SELF MATCHES %@", regex)
return urlPredicate.evaluate(with: url)
}
}
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