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
ba1b1f96
Commit
ba1b1f96
authored
Mar 05, 2020
by
井庆林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code review
parent
26df96f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
50 deletions
+8
-50
Phobos.h
GMPhobos/Classes/Phobos.h
+4
-23
Phobos.m
GMPhobos/Classes/Phobos.m
+4
-27
No files found.
GMPhobos/Classes/Phobos.h
View file @
ba1b1f96
...
...
@@ -164,28 +164,13 @@ NS_ASSUME_NONNULL_BEGIN
+
(
NSInteger
)
normalPhobosCount
;
/** 获取所有非立即发送埋点数据 */
+
(
NS
Dictionar
y
*
)
normalPhobosData
;
+
(
NS
Arra
y
*
)
normalPhobosData
;
/** 获取url的非立即发送埋点数量 */
+
(
NSInteger
)
normalPhobosCountForURL
:(
NSString
*
)
url
;
/** 获取serverAPI的非立即发送埋点数据 */
+
(
NSArray
*
)
normalPhobosDataForServerAPI
;
/** 获取url的非立即发送埋点数据 */
+
(
NSArray
*
)
normalPhobosDataForURL
:(
NSString
*
)
url
;
/** 获取所有立即发送埋点数量 */
+
(
NSUInteger
)
immediatelyPhobosCount
;
/** 获取所有立即发送埋点数据 */
+
(
NSDictionary
*
)
immediatelyPhobosData
;
/** 获取serverAPI的立即发送埋点数据 */
+
(
NSArray
*
)
immediatelyPhobosForServerAPI
;
/** 获取url的立即发送埋点数据 */
+
(
NSArray
*
)
immediatelyPhobosDataForURL
:(
NSString
*
)
url
;
/** 获取url的立即发送埋点数量 */
+
(
NSUInteger
)
immediatelyPhobosCountForURL
:(
NSString
*
)
url
;
+
(
NSArray
*
)
immediatelyPhobosData
;
/** 清除非立即发送埋点数据缓存 */
...
...
@@ -195,9 +180,5 @@ NS_ASSUME_NONNULL_BEGIN
+
(
void
)
removeAllImmediatelyPhobosData
;
/** 获取将要发送的数据 */
@property
(
nonatomic
,
copy
)
void
(
^
phobosSendDataBlock
)(
NSArray
*
datas
);
@end
NS_ASSUME_NONNULL_END
GMPhobos/Classes/Phobos.m
View file @
ba1b1f96
...
...
@@ -218,26 +218,13 @@ static BOOL isGray = NO;
}
/** 获取所有非立即发送埋点数据 */
+
(
NS
Dictionar
y
*
)
normalPhobosData
{
+
(
NS
Arra
y
*
)
normalPhobosData
{
return
isGray
?
[
NewPhobos
normalPhobosData
]
:
nil
;
}
/** 获取url的非立即发送埋点数量 */
+
(
NSUInteger
)
normalPhobosCountForURL
:
(
NSString
*
)
url
{
return
isGray
?
[
NewPhobos
normalPhobosCountForURL
:
url
]
:
0
;
}
+
(
NSArray
*
)
normalPhobosDataForServerAPI
{
return
isGray
?
[
NewPhobos
normalPhobosDataForServerAPI
]
:
nil
;
}
/** 获取url的非立即发送埋点数据 */
+
(
NSArray
*
)
normalPhobosDataForURL
:
(
NSString
*
)
url
{
return
isGray
?
[
NewPhobos
normalPhobosDataForURL
:
url
]
:
nil
;
}
+
(
NSArray
*
)
immediatelyPhobosForServerAPI
{
return
isGray
?
[
NewPhobos
immediatelyPhobosForServerAPI
]
:
nil
;
/** 获取所有立即发送埋点数量 */
+
(
NSUInteger
)
immediatelyPhobosCount
{
return
isGray
?
[
NewPhobos
immediatelyPhobosCount
]
:
0
;
}
/** 获取所有立即发送埋点数据 */
...
...
@@ -269,14 +256,4 @@ return isGray ? [NewPhobos normalPhobosDataForServerAPI] : nil;
}
}
-
(
void
)
setPhobosSendDataBlock
:
(
void
(
^
)(
NSArray
*
))
phobosSendDataBlock
{
if
(
isGray
)
{
NewPhobos
.
sharedClient
.
phobosSendDataBlock
=
phobosSendDataBlock
;
}
}
-
(
void
(
^
)(
NSArray
*
))
phobosSendDataBlock
{
return
NewPhobos
.
sharedClient
.
phobosSendDataBlock
;
}
@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