Commit 5bd78a98 authored by lmj_521aiau@163.com's avatar lmj_521aiau@163.com

main

parent 446c75f7
...@@ -56,9 +56,6 @@ class SHRecordListViewController: SHBaseViewController { ...@@ -56,9 +56,6 @@ class SHRecordListViewController: SHBaseViewController {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
let url = FileManager.default.url(forUbiquityContainerIdentifier: nil)
print(url as Any)
SHCloudManager.shared.getAllFolderDataSource { (result, models) in SHCloudManager.shared.getAllFolderDataSource { (result, models) in
if result{ if result{
......
...@@ -41,7 +41,9 @@ class SHCloudManager: NSObject { ...@@ -41,7 +41,9 @@ class SHCloudManager: NSObject {
container.accountStatus { (status, statusError) in container.accountStatus { (status, statusError) in
if let error = statusError { if let error = statusError {
DispatchQueue.main.async {
MBProgressHUD.showError("未知错误,终止操作") MBProgressHUD.showError("未知错误,终止操作")
}
self.statusHandler?(false) self.statusHandler?(false)
print("\(error.localizedDescription)") print("\(error.localizedDescription)")
}else{ }else{
...@@ -50,11 +52,15 @@ class SHCloudManager: NSObject { ...@@ -50,11 +52,15 @@ class SHCloudManager: NSObject {
self.statusHandler?(true) self.statusHandler?(true)
break; break;
case .noAccount: case .noAccount:
DispatchQueue.main.async {
MBProgressHUD.showError("请确认您的iCloid是否开启") MBProgressHUD.showError("请确认您的iCloid是否开启")
}
self.statusHandler?(false) self.statusHandler?(false)
break; break;
default: default:
DispatchQueue.main.async {
MBProgressHUD.showError("未知错误,终止操作") MBProgressHUD.showError("未知错误,终止操作")
}
self.statusHandler?(false) self.statusHandler?(false)
break; break;
} }
......
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