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
e27642d4
Commit
e27642d4
authored
Jan 16, 2019
by
叶凤鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改isPush类型
parent
674a18e9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
Phobos.m
GMPhobos/Classes/Phobos.m
+1
-1
PhobosPVProtocol.h
GMPhobos/Classes/PhobosPVProtocol.h
+1
-1
UIResponder+PhobosPV.m
GMPhobos/Classes/UIResponder+PhobosPV.m
+5
-5
No files found.
GMPhobos/Classes/Phobos.m
View file @
e27642d4
...
...
@@ -352,7 +352,7 @@ static NSString *sdkVersion = @"110";
[
dict
setObject
:
page
.
referrerId
?
:
@""
forKey
:
@"referrer_id"
];
[
dict
setObject
:
page
.
extraParam
?
:
@""
forKey
:
@"extra_param"
];
[
dict
setObject
:
page
.
referrerTabName
?
:
@""
forKey
:
@"referrer_tab_name"
];
[
dict
setObject
:
@
(
page
.
isPush
)
forKey
:
@"is_push"
];
[
dict
setObject
:
page
.
isPush
?:
@""
forKey
:
@"is_push"
];
if
(
page
.
inTime
.
length
>
0
)
{
// 页面显示时间为空时不记录页面pv事件
[
Phobos
track
:
@"page_view"
attributes
:
dict
];
...
...
GMPhobos/Classes/PhobosPVProtocol.h
View file @
e27642d4
...
...
@@ -73,6 +73,6 @@
1: 是推送页面跳转
0: 普通页面跳转
*/
@property
(
nonatomic
,
assign
)
BOOL
isPush
;
@property
(
nonatomic
,
copy
)
NSString
*
isPush
;
@end
GMPhobos/Classes/UIResponder+PhobosPV.m
View file @
e27642d4
...
...
@@ -181,13 +181,13 @@
return
referrerTabName
==
nil
?
@""
:
referrerTabName
;
}
-
(
BOOL
)
isPush
{
NSNumber
*
isPush
=
objc_getAssociatedObject
(
self
,
@selector
(
isPush
));
return
isPush
==
nil
?
NO
:
isPush
.
boolValue
;
-
(
void
)
setIsPush
:
(
NSString
*
)
isPush
{
objc_setAssociatedObject
(
self
,
@selector
(
isPush
),
isPush
,
OBJC_ASSOCIATION_COPY
);
}
-
(
void
)
setIsPush
:
(
BOOL
)
isPush
{
objc_setAssociatedObject
(
self
,
@selector
(
isPush
),
@
(
isPush
),
OBJC_ASSOCIATION_RETAIN_NONATOMIC
);
-
(
NSString
*
)
isPush
{
NSString
*
isPush
=
objc_getAssociatedObject
(
self
,
@selector
(
isPush
));
return
isPush
==
nil
?
@""
:
isPush
;
}
@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