DWConfigurationManager.m 766 Bytes
Newer Older
Han Ruisong's avatar
Han Ruisong committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//
//  DWConfigurationManager.m
//  Demo
//
//  Created by zwl on 2019/4/12.
//  Copyright © 2019 com.bokecc.www. All rights reserved.
//

#import "DWConfigurationManager.h"

@implementation DWConfigurationManager

+ (instancetype)sharedInstance
{
    static id sharedInstance =nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        
        sharedInstance =[[self alloc] init];
    });
    return sharedInstance;
}

-(instancetype)init
{
    if (self == [super init]) {
Han Ruisong's avatar
Han Ruisong committed
27
        
Han Ruisong's avatar
Han Ruisong committed
28
29
        self.DWAccount_userId = @"391E6E3340A00767";
        self.DWAccount_apikey = @"T8WdOUuvFEiOsou1xjDr4U73v12M7iNa";
Hanruisong's avatar
Hanruisong committed
30

Hanruisong's avatar
Hanruisong committed
31
        self.isOpenAd = [[[NSUserDefaults standardUserDefaults] objectForKey:@"isOpenAD"] boolValue];
Han Ruisong's avatar
Han Ruisong committed
32
33
34
35
36
    }
    return self;
}

@end