Commit 3d78a611 authored by Steven杜宇's avatar Steven杜宇

// crash 修复

parent 123bcccd
......@@ -240,7 +240,10 @@ class YHBaseViewModel {
// 验证url是否可直接访问
func checkUrlIsDirectAccess(_ url: String, callback:((Bool)->())?) {
if url.isEmpty {
callback?(true)
return
}
let task = URLSession.shared.dataTask(with: URL(string: url)!) {
(data, response, error) in
if error != nil {
......
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