#pragma mark -设备名称
+ (NSString*)deviceModelName
{
structutsnamesystemInfo;
uname(&systemInfo);
NSString *deviceModel = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];
if([deviceModelisEqualToString:@"iPhone1,1"]) return@"iPhone1G";
if([deviceModelisEqualToString:@"iPhone1,2"]) return@"iPhone3G";
if([deviceModelisEqualToString:@"iPhone2,1"]) return@"iPhone3GS";
if([deviceModelisEqualToString:@"iPhone3,1"]) return@"iPhone4";
if([deviceModelisEqualToString:@"iPhone3,2"]) return@"iPhone4";
if([deviceModelisEqualToString:@"iPhone3,3"]) return@"iPhone4";
if([deviceModelisEqualToString:@"iPhone4,1"]) return@"iPhone4S";
if([deviceModelisEqualToString:@"iPhone5,1"]) return@"iPhone5";
if([deviceModelisEqualToString:@"iPhone5,2"]) return@"iPhone5";
if([deviceModelisEqualToString:@"iPhone5,3"]) return@"iPhone5C";
if([deviceModelisEqualToString:@"iPhone5,4"]) return@"iPhone5C";
if([deviceModelisEqualToString:@"iPhone6,1"]) return@"iPhone5S";
if([deviceModelisEqualToString:@"iPhone6,2"]) return@"iPhone5S";
if([deviceModelisEqualToString:@"iPhone7,1"]) return@"iPhone6Plus";
if([deviceModelisEqualToString:@"iPhone7,2"]) return@"iPhone6";
if([deviceModelisEqualToString:@"iPhone8,1"]) return@"iPhone6s";
if([deviceModelisEqualToString:@"iPhone8,2"]) return@"iPhone6sPlus";
if([deviceModelisEqualToString:@"iPhone8,4"]) return@"iPhoneSE";
if([deviceModelisEqualToString:@"iPhone9,1"]) return@"iPhone7";
if([deviceModelisEqualToString:@"iPhone9,3"]) return@"iPhone7";
if([deviceModelisEqualToString:@"iPhone9,2"]) return@"iPhone7Plus";
if([deviceModelisEqualToString:@"iPhone9,4"]) return@"iPhone7Plus";
if([deviceModelisEqualToString:@"iPhone10,1"]) return@"iPhone8";
if ([deviceModel isEqualToString:@"iPhone10,2"]) return @"iPhone8Plus";
if([deviceModelisEqualToString:@"iPhone10,3"]) return@"iPhoneX";
if([deviceModelisEqualToString:@"iPhone10,4"]) return@"iPhone8";
if ([deviceModel isEqualToString:@"iPhone10,5"]) return @"iPhone8Plus";
if([deviceModelisEqualToString:@"iPhone10,6"]) return@"iPhoneX";
returndeviceModel;
}