Commit 29f3de46 authored by 井庆林's avatar 井庆林

code review

parent fc15795a
...@@ -12,9 +12,10 @@ ...@@ -12,9 +12,10 @@
#import "PhobosUtil.h" #import "PhobosUtil.h"
#import "PhobosCustomVisibleController.h" #import "PhobosCustomVisibleController.h"
#import <GMCache/GMCache.h> #import <GMCache/GMCache.h>
#import <objc/runtime.h> #import <mach/mach_time.h>
#import "PhobosDataManager.h" #import "PhobosDataManager.h"
#import "PhobosSendManager.h" #import "PhobosSendManager.h"
static NewPhobos *_sharedClient; static NewPhobos *_sharedClient;
static NSString *sdkVersion = @"1.4.0"; static NSString *sdkVersion = @"1.4.0";
...@@ -327,6 +328,8 @@ static NSString *sdkVersion = @"1.4.0"; ...@@ -327,6 +328,8 @@ static NSString *sdkVersion = @"1.4.0";
[dict setObject:deviceParams forKey:@"device"]; [dict setObject:deviceParams forKey:@"device"];
[dict setObject:_userId forKey:@"user_id"]; [dict setObject:_userId forKey:@"user_id"];
[dict setObject:currentTime forKey:@"create_at"]; [dict setObject:currentTime forKey:@"create_at"];
[dict setObject:@([[NSProcessInfo processInfo] systemUptime]) forKey:@"nano_time"];
[dict setObject:@(mach_absolute_time()) forKey:@"absolute_time"];
[dict setObject:attributes forKey:@"params"]; [dict setObject:attributes forKey:@"params"];
[dict setObject:_sessionId forKey:@"app_session_id"]; [dict setObject:_sessionId forKey:@"app_session_id"];
} }
......
...@@ -12,6 +12,8 @@ ...@@ -12,6 +12,8 @@
#import "PhobosUtil.h" #import "PhobosUtil.h"
#import "PhobosCustomVisibleController.h" #import "PhobosCustomVisibleController.h"
#import <GMCache/GMCache.h> #import <GMCache/GMCache.h>
#import <mach/mach_time.h>
static OldPhobos *sharedClient = nil; static OldPhobos *sharedClient = nil;
static NSString *sdkVersion = @"110"; static NSString *sdkVersion = @"110";
...@@ -425,6 +427,8 @@ static NSString *sdkVersion = @"110"; ...@@ -425,6 +427,8 @@ static NSString *sdkVersion = @"110";
[dict setObject:deviceParams forKey:@"device"]; [dict setObject:deviceParams forKey:@"device"];
[dict setObject:_userId forKey:@"user_id"]; [dict setObject:_userId forKey:@"user_id"];
[dict setObject:currentTime forKey:@"create_at"]; [dict setObject:currentTime forKey:@"create_at"];
[dict setObject:@([[NSProcessInfo processInfo] systemUptime]) forKey:@"nano_time"];
[dict setObject:@(mach_absolute_time()) forKey:@"absolute_time"];
[dict setObject:attributes forKey:@"params"]; [dict setObject:attributes forKey:@"params"];
[dict setObject:_sessionId forKey:@"app_session_id"]; [dict setObject:_sessionId forKey:@"app_session_id"];
} }
......
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