import CoreTelephony
import Alamofire
var currentNetStatus: NetworkReachabilityManager.NetworkReachabilityStatus? { get{ return self.netWorkReachability?.networkReachabilityStatus } } if self.currentNetStatus == .notReachable { CTCellularData().cellularDataRestrictionDidUpdateNotifier = { state in if state == .restricted { self.serviceErrBolck?(.restrictedNetErr , "请允许访问你的蜂窝数据,请前往设置") return } } handleResult?(TGSServiceResult.falid("网络不可用!")) return }