Commit 946f0bc0 by Sarkizz

修正逻辑

parent c50a53e0
......@@ -87,6 +87,10 @@ extension UIImage {
/// - Parameter complate: 回调
public func saveToAlbum(_ complate: UIImageSaveToAlbumCompleteBlock?) {
checkAuthorization({ status in
guard status == .authorized else {
complate?(self, nil, self.error(code: -3, msg: "无法访问图片资源"))
return
}
var localId: String?
PHPhotoLibrary.shared().performChanges({
let rs = PHAssetChangeRequest.creationRequestForAsset(from: self)
......
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 sign in to comment