+ (NSString *)getAccountId
{
#if __has_include(<Center/Center.h>)
return userInfo.accountId;
#else
return nil;
#endif
}
使用__has_include来检查项目是否引入某个类
最新推荐文章于 2023-10-18 21:53:21 发布
+ (NSString *)getAccountId
{
#if __has_include(<Center/Center.h>)
return userInfo.accountId;
#else
return nil;
#endif
}