Commit 7a53dafb authored by 井庆林's avatar 井庆林

修改user_type赋值

parent 1a276b7e
...@@ -60,17 +60,17 @@ static dispatch_queue_t _normalQueue; ...@@ -60,17 +60,17 @@ static dispatch_queue_t _normalQueue;
- (instancetype)init { - (instancetype)init {
if (self = [super init]) { if (self = [super init]) {
self.appName = @""; _appName = @"";
self.channelId = @""; _channelId = @"";
self.logEnabled = NO; _logEnabled = NO;
self.userId = @""; _userId = @"";
self.netStatus = @""; _netStatus = @"";
self.currentCityId = @""; _currentCityId = @"";
self.serverAPI = @""; _serverAPI = @"";
self.greyType = @""; _greyType = @"";
self.userType = [[NSMutableDictionary alloc] initWithCapacity:0]; _userType = [[NSMutableDictionary alloc] init];
self.appVersion = [PhobosUtil getAppVersion]; _appVersion = [PhobosUtil getAppVersion];
self.signingType = PhobosSigningTypeUndefined; _signingType = PhobosSigningTypeUndefined;
// self.immediatelySemaphore = dispatch_semaphore_create(1); // self.immediatelySemaphore = dispatch_semaphore_create(1);
// self.normalSemaphore = dispatch_semaphore_create(1); // self.normalSemaphore = dispatch_semaphore_create(1);
...@@ -126,7 +126,7 @@ static dispatch_queue_t _normalQueue; ...@@ -126,7 +126,7 @@ static dispatch_queue_t _normalQueue;
} }
- (void)setUserType:(NSMutableDictionary *)userType { - (void)setUserType:(NSMutableDictionary *)userType {
if (userType == nil && userType.count == 0) { if (userType == nil && userType.allKeys.count == 0) {
return; return;
} }
NSArray *newKeys = userType.allKeys; NSArray *newKeys = userType.allKeys;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment