 //  Copyright © 2017年 HengSu Technology. All rights reserved.
 //
 
-import Foundation
 import Alamofire
+#if os(iOS) || os(watchOS) || os(tvOS)
+    import UIKit
+#endif
 
 open class WBAlamofire {
     

    
    private func requestSuccess(_ request: WBAlBaseRequest, requestResult result:Any?) {
        // 取消网络菊花状态
        UIApplication.shared.isNetworkActivityIndicatorVisible = false
        
        if let result = result {
            // 如果是下载，则响应返回为下载保存的路径

// MARK: - Success && Failure
    private func requestDidFailed(_ request:WBAlBaseRequest, error requestError:Error, cacheURL url:URL? = nil, resumeData data:Data? = nil) {
        // 取消网络菊花状态
        #if os(iOS) || os(watchOS) || os(tvOS)
            UIApplication.shared.isNetworkActivityIndicatorVisible = false
        #endif
        
        request.error = requestError
        WBALog("Request <\(request)> failed, status code = \(request.statusCode), error = \(requestError.localizedDescription)")
