 // MARK: - Success && Failure
     private func requestDidFailed(_ request:WBAlBaseRequest, error requestError:Error, cacheURL url:URL? = nil, resumeData data:Data? = nil) {
         // 取消网络菊花状态
-        UIApplication.shared.isNetworkActivityIndicatorVisible = false
+        #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)")

                // 网络变为未知
                WBAlamofire.shared.cancel(request)
                
                UIApplication.shared.isNetworkActivityIndicatorVisible = false
            }else if status == .notReachable {
                // 网络断开
                WBAlamofire.shared.cancel(request)
                
                UIApplication.shared.isNetworkActivityIndicatorVisible = false
            }
        }
        if _config.listenNetWork {
            // 网络状态菊花显示
            UIApplication.shared.isNetworkActivityIndicatorVisible = true
            
            _listenManager?.startListening()
        }

            _listenManager?.stopListening()
            
            // 取消网络菊花状态
            #if os(iOS) || os(watchOS) || os(tvOS)
                UIApplication.shared.isNetworkActivityIndicatorVisible = false
            #endif
        }
    }
    
