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
80ba1cf6
Commit
80ba1cf6
authored
Jun 18, 2020
by
乔金柱
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zl_phobos' into 'master'
新增is_first字段 See merge request
!59
parents
19d46e1d
3254171e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
3 deletions
+11
-3
GMViewController.m
Example/GMPhobos/GMViewController.m
+1
-0
Podfile.lock
Example/Podfile.lock
+3
-3
NewPhobos.m
GMPhobos/Classes/NewPhobos.m
+1
-0
OldPhobos.m
GMPhobos/Classes/OldPhobos.m
+1
-0
PhobosPVProtocol.h
GMPhobos/Classes/PhobosPVProtocol.h
+5
-0
No files found.
Example/GMPhobos/GMViewController.m
View file @
80ba1cf6
...
@@ -60,6 +60,7 @@ NSString *const MockCityId = @"beijing";
...
@@ -60,6 +60,7 @@ NSString *const MockCityId = @"beijing";
[
dict
setObject
:
@""
forKey
:
@"extra_param"
];
[
dict
setObject
:
@""
forKey
:
@"extra_param"
];
[
dict
setObject
:
@""
forKey
:
@"referrer_tab_name"
];
[
dict
setObject
:
@""
forKey
:
@"referrer_tab_name"
];
[
dict
setObject
:
@
(
0
)
forKey
:
@"is_push"
];
[
dict
setObject
:
@
(
0
)
forKey
:
@"is_push"
];
[
dict
setObject
:
@
(
0
)
forKey
:
@"is_first"
];
// [Phobos track:@"page_view" attributes:dict];
// [Phobos track:@"page_view" attributes:dict];
// NSArray *array = [GMCache fetchObjectAtDocumentPathWithkey:PhobosCacheKey];
// NSArray *array = [GMCache fetchObjectAtDocumentPathWithkey:PhobosCacheKey];
//
//
...
...
Example/Podfile.lock
View file @
80ba1cf6
PODS:
PODS:
- GMCache (1.0.1):
- GMCache (1.0.1):
- TMCache (= 2.1.0)
- TMCache (= 2.1.0)
- GMPhobos (2.0.
6
):
- GMPhobos (2.0.
7
):
- GMCache
- GMCache
- MagicalRecord
- MagicalRecord
- MJExtension
- MJExtension
...
@@ -28,11 +28,11 @@ EXTERNAL SOURCES:
...
@@ -28,11 +28,11 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
SPEC CHECKSUMS:
GMCache: b78d8e46db864405e91d226ce640cc80d966c611
GMCache: b78d8e46db864405e91d226ce640cc80d966c611
GMPhobos:
e70f78a492eca95a5c5152620deda65e49f4e216
GMPhobos:
115e2608cdebcccf445bf95766fee25a4b62153d
MagicalRecord: 53bed74b4323b930992a725be713e53b37d19755
MagicalRecord: 53bed74b4323b930992a725be713e53b37d19755
MJExtension: 635f2c663dcb1bf76fa4b715b2570a5710aec545
MJExtension: 635f2c663dcb1bf76fa4b715b2570a5710aec545
TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed
TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed
PODFILE CHECKSUM: ea0fac2144ac80baf8f21576cde49526c19991ad
PODFILE CHECKSUM: ea0fac2144ac80baf8f21576cde49526c19991ad
COCOAPODS: 1.9.
1
COCOAPODS: 1.9.
3
GMPhobos/Classes/NewPhobos.m
View file @
80ba1cf6
...
@@ -284,6 +284,7 @@ static dispatch_semaphore_t _phobos_semaphore;
...
@@ -284,6 +284,7 @@ static dispatch_semaphore_t _phobos_semaphore;
[
dict
setObject
:
PhobosSafeString
(
page
.
messageId
)
forKey
:
@"message_id"
];
[
dict
setObject
:
PhobosSafeString
(
page
.
messageId
)
forKey
:
@"message_id"
];
[
dict
setObject
:
PhobosSafeString
(
page
.
inTimeMillis
)
forKey
:
@"in_time_millis"
];
[
dict
setObject
:
PhobosSafeString
(
page
.
inTimeMillis
)
forKey
:
@"in_time_millis"
];
[
dict
setObject
:
PhobosSafeString
([
PhobosUtil
currentMMTime
])
forKey
:
@"out_time_millis"
];
[
dict
setObject
:
PhobosSafeString
([
PhobosUtil
currentMMTime
])
forKey
:
@"out_time_millis"
];
[
dict
setObject
:
@
(
page
.
isFirst
)
forKey
:
@"is_first"
];
if
(
page
.
inTime
.
length
>
0
)
{
if
(
page
.
inTime
.
length
>
0
)
{
// 页面显示时间为空时不记录页面pv事件
// 页面显示时间为空时不记录页面pv事件
...
...
GMPhobos/Classes/OldPhobos.m
View file @
80ba1cf6
...
@@ -362,6 +362,7 @@ static OldPhobos *sharedClient = nil;
...
@@ -362,6 +362,7 @@ static OldPhobos *sharedClient = nil;
[
dict
setObject
:
PhobosSafeString
(
page
.
messageId
)
forKey
:
@"message_id"
];
[
dict
setObject
:
PhobosSafeString
(
page
.
messageId
)
forKey
:
@"message_id"
];
[
dict
setObject
:
PhobosSafeString
(
page
.
inTimeMillis
)
forKey
:
@"in_time_millis"
];
[
dict
setObject
:
PhobosSafeString
(
page
.
inTimeMillis
)
forKey
:
@"in_time_millis"
];
[
dict
setObject
:
PhobosSafeString
([
PhobosUtil
currentMMTime
])
forKey
:
@"out_time_millis"
];
[
dict
setObject
:
PhobosSafeString
([
PhobosUtil
currentMMTime
])
forKey
:
@"out_time_millis"
];
[
dict
setObject
:
@
(
page
.
isFirst
)
forKey
:
@"is_first"
];
if
(
page
.
inTime
.
length
>
0
)
{
if
(
page
.
inTime
.
length
>
0
)
{
// 页面显示时间为空时不记录页面pv事件
// 页面显示时间为空时不记录页面pv事件
...
...
GMPhobos/Classes/PhobosPVProtocol.h
View file @
80ba1cf6
...
@@ -89,6 +89,11 @@ typedef void(^PhobosUpdatePVBlock)(void);
...
@@ -89,6 +89,11 @@ typedef void(^PhobosUpdatePVBlock)(void);
获取上一个页面链路的page_name link by 7.20.0 如果有此页面有page_name则添加 , 没有添加""
获取上一个页面链路的page_name link by 7.20.0 如果有此页面有page_name则添加 , 没有添加""
*/
*/
@property
(
nonatomic
,
strong
)
NSArray
*
referrerLink
;
@property
(
nonatomic
,
strong
)
NSArray
*
referrerLink
;
/**
是否是第一次来到这个页面,在viewDidLoad赋值为1
在即将消失的方法赋值为0
*/
@property
(
nonatomic
,
assign
)
NSInteger
isFirst
;
/// 业务层更新PVStart信息
/// 业务层更新PVStart信息
@property
(
nonatomic
,
copy
)
PhobosUpdatePVBlock
updatePVStartBlock
;
@property
(
nonatomic
,
copy
)
PhobosUpdatePVBlock
updatePVStartBlock
;
...
...
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