// // EPLoginBridge.swift // YuMi // // Created by AI on 2025-01-27. // 桥接 Objective-C 宏到 Swift // import UIKit /// 桥接 kImage 宏 func kImage(_ name: String) -> UIImage? { return UIImage(named: name) } /// 桥接 YMLocalizedString 宏 func YMLocalizedString(_ key: String) -> String { return Bundle.ymLocalizedString(forKey: key) } /// 桥接 URLType 枚举常量 extension URLType { static var captchaSwitch: URLType { return URLType(rawValue: 113)! // kCaptchaSwitchPath } } /// DES 加密辅助函数 func encryptDES(_ plainText: String) -> String { // 直接使用加密密钥(与 ObjC 版本保持一致) let key = "1ea53d260ecf11e7b56e00163e046a26" return DESEncrypt.encryptUseDES(plainText, key: key) ?? plainText }