Files
suixinkan_ios_new/suixinkan/App/WeChatConfig.swift
汉秋 a528d9b0d7 接入微信分享 SDK 并配置 Universal Link。
集成 WechatOpenSDK、www.zhifly.cn/suixinkan/ 通用链接与邀请页分享能力,附带 AASA 部署文件与单元测试。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 15:02:37 +08:00

37 lines
1.3 KiB
Swift
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// WeChatConfig.swift
// suixinkan
//
// Open SDK 线 AppID Info.plist URL Scheme
//
import Foundation
/// AppID Universal Link
enum WeChatConfig {
/// AppID线 AppID
static let appID = "wxdd80ec12c4fee322"
/// Universal Link `/`
static let universalLink = "https://www.zhifly.cn/suixinkan/"
/// Associated Domains `applinks:`
static let associatedDomain = "www.zhifly.cn"
/// AASA paths apple-app-site-association
static let aasaPathPattern = "/suixinkan/*"
/// Apple Team ID + Bundle ID AASA 使
static let aasaAppID = "56GVN5RNVN.com.yuanzhixiang.suixinkan"
/// Universal Link
static func validateUniversalLink(_ link: String) -> Bool {
guard let url = URL(string: link),
url.scheme?.lowercased() == "https",
link.hasSuffix("/") else {
return false
}
return true
}
}