Commit 82d88df3 authored by wangjun's avatar wangjun

添加通用参数netStatus

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