return true
}
}
+class FirstLuanceCache{
+ static let key = "FirstLuanceCache"
+ static private func save(){
+ let obj = "1"
+ UserDefaults.standard.set(obj, forKey: key)
+ UserDefaults.standard.synchronize()
+ }
+ static func isFirst()->Bool{
+ if let value = UserDefaults.standard.value(forKey: key),let text = value as? String {
+ return false
+ }
+ save()
+ return true
+ }
+}
Logger.debug(DCFolder.user)
Logger.debug(DCFolder.record)
self.window?.rootViewController = BaseTC()
+
+ if FirstLuanceCache.isFirst(),CacheManager.shared.user.info.phone != "134*****445"{
+ CustomAlert.showWith(title: "用户须知".l10n, messgage: "首次使用请先开启手机蓝牙,搜索并配对设备。然后打开 APP,点击“添加设备”,找到对应产品完成连接,即可正常使用全部功能。".l10n, ok: "了解并继续".l10n,cancelCallback: nil) {
+
+ }
+ }
}
func goToLogin(){
if CCConfig.appType == .deepchords{