molistar商店包版本修改 此commit置顶 1.0.3
This commit is contained in:
@@ -32,10 +32,12 @@
|
||||
static ClientConfig * config;
|
||||
dispatch_once(&onceToken, ^{
|
||||
config = [[ClientConfig alloc] init];
|
||||
config.isTF = [ClientConfig isTestFlight];
|
||||
});
|
||||
return config;
|
||||
}
|
||||
-(BOOL)isTestFlight{
|
||||
|
||||
+(BOOL)isTestFlight{
|
||||
NSURL *receiptURL = [[NSBundle mainBundle] appStoreReceiptURL];
|
||||
NSString *receiptURLString = [receiptURL path];
|
||||
BOOL isTestFlight = ([receiptURLString containsString:@"sandboxReceipt"] || [receiptURLString containsString:@"_MASReceipt/receipt"]);
|
||||
@@ -115,11 +117,6 @@
|
||||
timer = nil;
|
||||
}
|
||||
}
|
||||
- (BOOL)isTF{
|
||||
if(!_isTF){
|
||||
_isTF = [self isTestFlight];
|
||||
}
|
||||
return _isTF;
|
||||
}
|
||||
|
||||
|
||||
@end
|
||||
|
Reference in New Issue
Block a user