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
dc2c0bbd
Commit
dc2c0bbd
authored
Jan 16, 2019
by
gm
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.wanmeizhensuo.com:gengmeiios/GMPhobos
parents
682decd4
20edd391
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 @
dc2c0bbd
...
@@ -352,7 +352,7 @@ static NSString *sdkVersion = @"110";
...
@@ -352,7 +352,7 @@ static NSString *sdkVersion = @"110";
[
dict
setObject
:
page
.
referrerId
?
:
@""
forKey
:
@"referrer_id"
];
[
dict
setObject
:
page
.
referrerId
?
:
@""
forKey
:
@"referrer_id"
];
[
dict
setObject
:
page
.
extraParam
?
:
@""
forKey
:
@"extra_param"
];
[
dict
setObject
:
page
.
extraParam
?
:
@""
forKey
:
@"extra_param"
];
[
dict
setObject
:
page
.
referrerTabName
?
:
@""
forKey
:
@"referrer_tab_name"
];
[
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
)
{
if
(
page
.
inTime
.
length
>
0
)
{
// 页面显示时间为空时不记录页面pv事件
// 页面显示时间为空时不记录页面pv事件
[
Phobos
track
:
@"page_view"
attributes
:
dict
];
[
Phobos
track
:
@"page_view"
attributes
:
dict
];
...
...
GMPhobos/Classes/PhobosPVProtocol.h
View file @
dc2c0bbd
...
@@ -73,6 +73,6 @@
...
@@ -73,6 +73,6 @@
1: 是推送页面跳转
1: 是推送页面跳转
0: 普通页面跳转
0: 普通页面跳转
*/
*/
@property
(
nonatomic
,
assign
)
BOOL
isPush
;
@property
(
nonatomic
,
copy
)
NSString
*
isPush
;
@end
@end
GMPhobos/Classes/UIResponder+PhobosPV.m
View file @
dc2c0bbd
...
@@ -181,13 +181,13 @@
...
@@ -181,13 +181,13 @@
return
referrerTabName
==
nil
?
@""
:
referrerTabName
;
return
referrerTabName
==
nil
?
@""
:
referrerTabName
;
}
}
-
(
BOOL
)
isPush
{
-
(
void
)
setIsPush
:
(
NSString
*
)
isPush
{
NSNumber
*
isPush
=
objc_getAssociatedObject
(
self
,
@selector
(
isPush
));
objc_setAssociatedObject
(
self
,
@selector
(
isPush
),
isPush
,
OBJC_ASSOCIATION_COPY
);
return
isPush
==
nil
?
NO
:
isPush
.
boolValue
;
}
}
-
(
void
)
setIsPush
:
(
BOOL
)
isPush
{
-
(
NSString
*
)
isPush
{
objc_setAssociatedObject
(
self
,
@selector
(
isPush
),
@
(
isPush
),
OBJC_ASSOCIATION_RETAIN_NONATOMIC
);
NSString
*
isPush
=
objc_getAssociatedObject
(
self
,
@selector
(
isPush
));
return
isPush
==
nil
?
@""
:
isPush
;
}
}
@end
@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