Commit aa182e63 authored by Alex朱枝文's avatar Alex朱枝文

续签文书预览增加私域转公域链接

parent db8476bf
...@@ -255,11 +255,21 @@ extension YHResignDocumentDetailViewController { ...@@ -255,11 +255,21 @@ extension YHResignDocumentDetailViewController {
guard let self = self else { guard let self = self else {
return return
} }
if let urlString = model?.url, let url = URL(string: urlString) { // 全部是私域链接,转公域处理
let safariViewController = SFSafariViewController(url: url) if let urlString = model?.url {
safariViewController.dismissButtonStyle = .close YHHUD.show(.progress(message: "加载中..."))
safariViewController.modalPresentationStyle = .fullScreen self.viewModel.getPublicImageUrl(urlString) { success, error in
self.present(safariViewController, animated: true, completion: nil) YHHUD.hide()
if let success = success, let url = URL(string: success) {
let safariViewController = SFSafariViewController(url: url)
safariViewController.dismissButtonStyle = .close
safariViewController.modalPresentationStyle = .fullScreen
self.present(safariViewController, animated: true, completion: nil)
} else if let error = error {
let errorMsg = error.errorMsg
YHHUD.flash(message: errorMsg)
}
}
} else if let error = error { } else if let error = error {
let errorMsg = error.errorMsg let errorMsg = error.errorMsg
YHHUD.flash(message: errorMsg) YHHUD.flash(message: errorMsg)
......
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