CFUUIDRef uuidRef = CFUUIDCreate(NULL);
CFStringRef uuidStrRef = CFUUIDCreateString(NULL, uuidRef);
CFRelease(uuidRef);
uuid = (__bridge_transfer NSString*)uuidStrRef;
[api setOneConfig:api.CFG_KEY_DEV_ID value:uuid];
NSLog(@"设备ID是:%@", uuid);
//设备类型
NSString* dev_ty = [[UIDevice currentDevice] name];//设备名称;
dev_ty = [dev_ty stringByAppendingFormat:@" %@", [[UIDevice currentDevice] systemVersion]];
[api setOneConfig:api.CFG_KEY_DEV_TY value:dev_ty];//symterm 版本;
NSLog(@"设备类型是:%@", dev_ty);