let reachable = Reachability.forInternetConnection()
if reachable!.currentReachabilityStatus() == ReachableViaWiFi {
self.DNSCheckInit()
Log.Debug("wifi - connection");
}
else ifr eachable!.currentReachabilityStatus() == ReachableViaWWAN {
Log.Debug("Cellular Network - connection");
self.checkUpdateDate()
}else{
Log.Debug("No NetWork");
self.DNSCheckInit()
}
欢迎大家加入QQ群一起交流学习:
464406500
网友评论