Commit e9c583d0 authored by 翟国钧's avatar 翟国钧

phobos 新增currentcityid

parent 2738b81b
...@@ -21,6 +21,7 @@ static NSString *sdkVersion = @"110"; ...@@ -21,6 +21,7 @@ static NSString *sdkVersion = @"110";
@property (strong, nonatomic) NSDateFormatter *dateFormatter; @property (strong, nonatomic) NSDateFormatter *dateFormatter;
@property (strong, nonatomic) NSString *appName; @property (strong, nonatomic) NSString *appName;
@property (strong, nonatomic) NSString *channelId; @property (strong, nonatomic) NSString *channelId;
@property (strong, nonatomic) NSString *currentCityId;
@property (strong, nonatomic) NSString *appVersion; @property (strong, nonatomic) NSString *appVersion;
@property (assign, nonatomic) NSInteger userId; @property (assign, nonatomic) NSInteger userId;
@property (assign, nonatomic) BOOL logEnabled; @property (assign, nonatomic) BOOL logEnabled;
...@@ -57,6 +58,7 @@ static NSString *sdkVersion = @"110"; ...@@ -57,6 +58,7 @@ static NSString *sdkVersion = @"110";
_channelId = channelId; _channelId = channelId;
_logEnabled = NO; _logEnabled = NO;
_userId = 0; _userId = 0;
_currentCityId = @"";
_appVersion = [self getAppVersion]; _appVersion = [self getAppVersion];
[self setupNotification]; [self setupNotification];
[self handleSessionStart]; [self handleSessionStart];
...@@ -74,6 +76,11 @@ static NSString *sdkVersion = @"110"; ...@@ -74,6 +76,11 @@ static NSString *sdkVersion = @"110";
_userId = userId; _userId = userId;
} }
- (void)setCurrentCityId:(NSString *)currentCityId
{
_currentCityId = currentCityId;
}
- (void)handleEventAfterInit{ - (void)handleEventAfterInit{
WMCacheService *cache = [WMCacheService sharedInstance]; WMCacheService *cache = [WMCacheService sharedInstance];
...@@ -285,7 +292,8 @@ static NSString *sdkVersion = @"110"; ...@@ -285,7 +292,8 @@ static NSString *sdkVersion = @"110";
NSMutableDictionary *appParams = [NSMutableDictionary dictionaryWithObjectsAndKeys: NSMutableDictionary *appParams = [NSMutableDictionary dictionaryWithObjectsAndKeys:
self.appName, @"name", self.appName, @"name",
self.appVersion, @"version", self.appVersion, @"version",
self.channelId,@"channel", nil]; self.channelId,@"channel",
self.currentCityId,@"current_city_id", nil];
[dict setObject:eventId forKey:@"type"]; [dict setObject:eventId forKey:@"type"];
[dict setObject:appParams forKey:@"app"]; [dict setObject:appParams forKey:@"app"];
[dict setObject:sdkVersion forKey:@"version"]; [dict setObject:sdkVersion forKey:@"version"];
......
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