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

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

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