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
ac50d2e0
Commit
ac50d2e0
authored
Jun 22, 2020
by
周亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改is_first赋值位置
parent
a816925a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
NewPhobos.m
GMPhobos/Classes/NewPhobos.m
+3
-1
OldPhobos.m
GMPhobos/Classes/OldPhobos.m
+3
-1
Phobos.m
GMPhobos/Classes/Phobos.m
+1
-4
No files found.
GMPhobos/Classes/NewPhobos.m
View file @
ac50d2e0
...
...
@@ -286,7 +286,9 @@ static dispatch_semaphore_t _phobos_semaphore;
[
dict
setObject
:
PhobosSafeString
([
PhobosUtil
currentMMTime
])
forKey
:
@"out_time_millis"
];
//首次进来为1,再次进入的时候都为0
[
dict
setObject
:
page
.
isFirst
?
@
(
0
):
@
(
1
)
forKey
:
@"is_first"
];
if
(
!
page
.
isFirst
)
{
page
.
isFirst
=
YES
;
}
if
(
page
.
inTime
.
length
>
0
)
{
// 页面显示时间为空时不记录页面pv事件
[
NewPhobos
track
:
@"page_view"
attributes
:
dict
];
...
...
GMPhobos/Classes/OldPhobos.m
View file @
ac50d2e0
...
...
@@ -364,7 +364,9 @@ static OldPhobos *sharedClient = nil;
[
dict
setObject
:
PhobosSafeString
([
PhobosUtil
currentMMTime
])
forKey
:
@"out_time_millis"
];
//首次进来为1,再次进入的时候都为0
[
dict
setObject
:
page
.
isFirst
?
@
(
0
):
@
(
1
)
forKey
:
@"is_first"
];
if
(
!
page
.
isFirst
)
{
page
.
isFirst
=
YES
;
}
if
(
page
.
inTime
.
length
>
0
)
{
// 页面显示时间为空时不记录页面pv事件
[
OldPhobos
track
:
@"page_view"
attributes
:
dict
];
...
...
GMPhobos/Classes/Phobos.m
View file @
ac50d2e0
...
...
@@ -136,10 +136,7 @@ static BOOL isGray = NO;
*/
-
(
void
)
onPVEnd
:
(
UIResponder
<
PhobosPVProtocol
>
*
)
page
{
[
_rePhobos
onPVEnd
:
page
];
[
_oldPhobos
onPVEnd
:
page
];
if
(
!
page
.
isFirst
)
{
page
.
isFirst
=
YES
;
}
[
_oldPhobos
onPVEnd
:
page
];
}
/**
...
...
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