Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
GMPhobos
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
GMPhobos
Commits
29f3de46
Commit
29f3de46
authored
Mar 09, 2020
by
井庆林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code review
parent
fc15795a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
NewPhobos.m
GMPhobos/Classes/NewPhobos.m
+4
-1
OldPhobos.m
GMPhobos/Classes/OldPhobos.m
+4
-0
No files found.
GMPhobos/Classes/NewPhobos.m
View file @
29f3de46
...
...
@@ -12,9 +12,10 @@
#import "PhobosUtil.h"
#import "PhobosCustomVisibleController.h"
#import <GMCache/GMCache.h>
#import <
objc/run
time.h>
#import <
mach/mach_
time.h>
#import "PhobosDataManager.h"
#import "PhobosSendManager.h"
static
NewPhobos
*
_sharedClient
;
static
NSString
*
sdkVersion
=
@"1.4.0"
;
...
...
@@ -327,6 +328,8 @@ static NSString *sdkVersion = @"1.4.0";
[
dict
setObject
:
deviceParams
forKey
:
@"device"
];
[
dict
setObject
:
_userId
forKey
:
@"user_id"
];
[
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
:
_sessionId
forKey
:
@"app_session_id"
];
}
...
...
GMPhobos/Classes/OldPhobos.m
View file @
29f3de46
...
...
@@ -12,6 +12,8 @@
#import "PhobosUtil.h"
#import "PhobosCustomVisibleController.h"
#import <GMCache/GMCache.h>
#import <mach/mach_time.h>
static
OldPhobos
*
sharedClient
=
nil
;
static
NSString
*
sdkVersion
=
@"110"
;
...
...
@@ -425,6 +427,8 @@ static NSString *sdkVersion = @"110";
[
dict
setObject
:
deviceParams
forKey
:
@"device"
];
[
dict
setObject
:
_userId
forKey
:
@"user_id"
];
[
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
:
_sessionId
forKey
:
@"app_session_id"
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment