Commit fbd442d8 authored by 翟国钧's avatar 翟国钧

udpate

parent 54638fcb
...@@ -381,10 +381,10 @@ ...@@ -381,10 +381,10 @@
+ (NSString *)getTelephonyInfo { + (NSString *)getTelephonyInfo {
CTTelephonyNetworkInfo *info = [[CTTelephonyNetworkInfo alloc] init]; CTTelephonyNetworkInfo *info = [[CTTelephonyNetworkInfo alloc] init];
CTCarrier *carrier = [info subscriberCellularProvider]; CTCarrier *carrier = [info subscriberCellularProvider];
if (carrier) { if (carrier == nil) {
return [carrier carrierName]; return @"";
} }
return @""; return [carrier carrierName] != nil ? [carrier carrierName] : @"";
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment