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
b8825c07
Commit
b8825c07
authored
Apr 07, 2020
by
井庆林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改注释
parent
ffca9286
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
Phobos.m
GMPhobos/Classes/Phobos.m
+1
-4
No files found.
GMPhobos/Classes/Phobos.m
View file @
b8825c07
...
...
@@ -47,6 +47,7 @@ static BOOL isGray = NO;
-
(
instancetype
)
initWithAppName
:
(
NSString
*
)
appName
channelId
:
(
NSString
*
)
channelId
{
if
(
self
=
[
super
init
])
{
isGray
=
[[[
NSUserDefaults
standardUserDefaults
]
objectForKey
:
PhobosGray
]
boolValue
];
// isGray在config接口获取,会保存在NSUserDefaults的PhobosGray中,当次不使用,在下一次冷启动通过该灰度,初始化埋点库
if
(
isGray
)
{
_rePhobos
=
[
NewPhobos
clientWithAppName
:
appName
channelId
:
channelId
];
sharedClient
=
_rePhobos
;
...
...
@@ -138,10 +139,6 @@ static BOOL isGray = NO;
[
_oldPhobos
onPVEnd
:
page
];
}
/**
* 添加当前对象的成员变量的赋值,防止外部访问该数据,导致为nil,下同
*/
-
(
void
)
setCaptureNullExpection
:
(
void
(
^
)(
NSString
*
_Nonnull
,
NSDictionary
*
_Nonnull
))
captureNullExpection
{
_captureNullExpection
=
captureNullExpection
;
_rePhobos
.
captureNullExpection
=
captureNullExpection
;
...
...
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