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
9c9a2d85
Commit
9c9a2d85
authored
Jan 07, 2019
by
叶凤鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加isPush
parent
2c98ab14
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
+17
-0
Phobos.m
GMPhobos/Classes/Phobos.m
+1
-0
PhobosPVProtocol.h
GMPhobos/Classes/PhobosPVProtocol.h
+7
-0
UIResponder+PhobosPV.m
GMPhobos/Classes/UIResponder+PhobosPV.m
+9
-0
No files found.
GMPhobos/Classes/Phobos.m
View file @
9c9a2d85
...
...
@@ -347,6 +347,7 @@ static NSString *sdkVersion = @"110";
[
dict
setObject
:
page
.
extraParam
?
:
@""
forKey
:
@"extra_param"
];
[
dict
setObject
:
page
.
homeTabName
?
:
@""
forKey
:
@"tab_name"
];
[
dict
setObject
:
page
.
currentTabName
?
:
@""
forKey
:
@"referrer_tab_name"
];
[
dict
setObject
:
@
(
page
.
isPush
)
forKey
:
@"is_push"
];
NSAssert
(
page
.
inTime
.
length
>
0
,
@"页面显示时间不能为空!"
);
[
Phobos
track
:
@"page_view"
attributes
:
dict
];
if
(
page
.
inTime
.
length
>
0
)
{
...
...
GMPhobos/Classes/PhobosPVProtocol.h
View file @
9c9a2d85
...
...
@@ -68,4 +68,11 @@
*/
@property
(
nonatomic
,
copy
)
NSString
*
currentTabName
;
/**
is_push:判断是否是推送标识
1: 是推送页面跳转
0: 普通页面跳转
*/
@property
(
nonatomic
,
assign
)
BOOL
isPush
;
@end
GMPhobos/Classes/UIResponder+PhobosPV.m
View file @
9c9a2d85
...
...
@@ -187,4 +187,13 @@
return
currentTabName
==
nil
?
@""
:
currentTabName
;
}
-
(
BOOL
)
isPush
{
NSNumber
*
isPush
=
objc_getAssociatedObject
(
self
,
@selector
(
isPush
));
return
isPush
==
nil
?
NO
:
isPush
.
boolValue
;
}
-
(
void
)
setIsPush
:
(
BOOL
)
isPush
{
objc_setAssociatedObject
(
self
,
@selector
(
isPush
),
@
(
isPush
),
OBJC_ASSOCIATION_RETAIN_NONATOMIC
);
}
@end
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