Commit 82d88df3 authored by wangjun's avatar wangjun

添加通用参数netStatus

parent acfea8ef
...@@ -6,7 +6,6 @@ use_frameworks! ...@@ -6,7 +6,6 @@ use_frameworks!
target 'GMPhobos_Example' do target 'GMPhobos_Example' do
pod 'GMPhobos', :path => '../' pod 'GMPhobos', :path => '../'
target 'GMPhobos_Tests' do target 'GMPhobos_Tests' do
inherit! :search_paths inherit! :search_paths
end end
......
...@@ -61,6 +61,13 @@ ...@@ -61,6 +61,13 @@
- (void)setGPS:(NSDictionary *)gps; - (void)setGPS:(NSDictionary *)gps;
/**
网络状态
@param status status
*/
- (void)setNetStatus: (NSString *)status;
/** /**
* @brief 自定义事件,数量统计. * @brief 自定义事件,数量统计.
* *
......
...@@ -29,6 +29,7 @@ static NSString *sdkVersion = @"110"; ...@@ -29,6 +29,7 @@ static NSString *sdkVersion = @"110";
@property (strong, nonatomic) NSString *sessionId; @property (strong, nonatomic) NSString *sessionId;
@property (strong, nonatomic) NSString *lng; @property (strong, nonatomic) NSString *lng;
@property (strong, nonatomic) NSString *lat; @property (strong, nonatomic) NSString *lat;
@property (nonatomic, copy) NSString *netStatus;
@end @end
...@@ -56,6 +57,7 @@ static NSString *sdkVersion = @"110"; ...@@ -56,6 +57,7 @@ static NSString *sdkVersion = @"110";
_userId = 0; _userId = 0;
_lat = @""; _lat = @"";
_lng = @""; _lng = @"";
_netStatus = @"";
_currentCityId = @""; _currentCityId = @"";
_appVersion = [self getAppVersion]; _appVersion = [self getAppVersion];
[self setupNotification]; [self setupNotification];
...@@ -90,6 +92,10 @@ static NSString *sdkVersion = @"110"; ...@@ -90,6 +92,10 @@ static NSString *sdkVersion = @"110";
} }
} }
- (void)setNetStatus:(NSString *)status {
_netStatus = status;
}
- (void)handleEventAfterInit{ - (void)handleEventAfterInit{
WMCacheService *cache = [WMCacheService sharedInstance]; WMCacheService *cache = [WMCacheService sharedInstance];
...@@ -335,7 +341,8 @@ static NSString *sdkVersion = @"110"; ...@@ -335,7 +341,8 @@ static NSString *sdkVersion = @"110";
@"ios",@"device_type", @"ios",@"device_type",
@"Apple",@"manufacturer", @"Apple",@"manufacturer",
_lat,@"lat", _lat,@"lat",
_lng,@"lng",nil]; _lng,@"lng",
_netStatus,@"is_WiFi",nil];
NSMutableDictionary *appParams = [NSMutableDictionary dictionaryWithObjectsAndKeys: NSMutableDictionary *appParams = [NSMutableDictionary dictionaryWithObjectsAndKeys:
self.appName, @"name", self.appName, @"name",
self.appVersion, @"version", self.appVersion, @"version",
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
@property (nonatomic, copy, nonnull) NSString *inTime; @property (nonatomic, copy, nonnull) NSString *inTime;
/** /**
<#Description#> hu
*/ */
@property (nonatomic, copy, nonnull) NSString *referrerId; @property (nonatomic, copy, nonnull) NSString *referrerId;
......
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