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
        }

 

posted on 2020-10-19 14:37  懂事长qingzZ  阅读(299)  评论(0编辑  收藏  举报