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
38380072
Commit
38380072
authored
Feb 06, 2021
by
艾娇平
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ajp/dev' into 'master'
修复部分埋点不实时的问题 See merge request
!82
parents
01e910ae
c772fde9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
14 deletions
+7
-14
NewPhobos.m
GMPhobos/Classes/NewPhobos.m
+4
-4
Phobos.m
GMPhobos/Classes/Phobos.m
+3
-10
No files found.
GMPhobos/Classes/NewPhobos.m
View file @
38380072
...
@@ -397,11 +397,11 @@ static NewPhobos *_sharedClient;
...
@@ -397,11 +397,11 @@ static NewPhobos *_sharedClient;
}
}
+
(
void
)
track
:
(
NSString
*
)
eventName
{
+
(
void
)
track
:
(
NSString
*
)
eventName
{
[
self
track
:
eventName
attributes
:@{}
sendNow
:
NO
currentAPI
:
_sharedClient
.
serverAPI
];
[
self
track
:
eventName
attributes
:@{}
sendNow
:
[
NewPhobos
sharedClient
].
isGraySendNow
currentAPI
:
_sharedClient
.
serverAPI
];
}
}
+
(
void
)
track
:
(
NSString
*
)
eventName
attributes
:
(
NSDictionary
*
)
attributes
{
+
(
void
)
track
:
(
NSString
*
)
eventName
attributes
:
(
NSDictionary
*
)
attributes
{
[
self
track
:
eventName
attributes
:
attributes
sendNow
:
NO
currentAPI
:
_sharedClient
.
serverAPI
];
[
self
track
:
eventName
attributes
:
attributes
sendNow
:
[
NewPhobos
sharedClient
].
isGraySendNow
currentAPI
:
_sharedClient
.
serverAPI
];
}
}
+
(
void
)
track
:
(
NSString
*
)
eventName
attributes
:
(
NSDictionary
*
)
attributes
sendNow
:
(
BOOL
)
sendNow
{
+
(
void
)
track
:
(
NSString
*
)
eventName
attributes
:
(
NSDictionary
*
)
attributes
sendNow
:
(
BOOL
)
sendNow
{
...
@@ -409,11 +409,11 @@ static NewPhobos *_sharedClient;
...
@@ -409,11 +409,11 @@ static NewPhobos *_sharedClient;
}
}
+
(
void
)
track
:
(
NSString
*
)
eventName
currentAPI
:
(
NSString
*
)
currentAPI
{
+
(
void
)
track
:
(
NSString
*
)
eventName
currentAPI
:
(
NSString
*
)
currentAPI
{
[
self
track
:
eventName
attributes
:@{}
sendNow
:
NO
currentAPI
:
currentAPI
];
[
self
track
:
eventName
attributes
:@{}
sendNow
:
[
NewPhobos
sharedClient
].
isGraySendNow
currentAPI
:
currentAPI
];
}
}
+
(
void
)
track
:
(
NSString
*
)
eventName
attributes
:
(
NSDictionary
*
)
attributes
currentAPI
:
(
NSString
*
)
currentAPI
{
+
(
void
)
track
:
(
NSString
*
)
eventName
attributes
:
(
NSDictionary
*
)
attributes
currentAPI
:
(
NSString
*
)
currentAPI
{
[
self
track
:
eventName
attributes
:
attributes
sendNow
:
NO
currentAPI
:
currentAPI
];
[
self
track
:
eventName
attributes
:
attributes
sendNow
:
[
NewPhobos
sharedClient
].
isGraySendNow
currentAPI
:
currentAPI
];
}
}
+
(
void
)
track
:
(
NSString
*
)
eventName
attributes
:
(
NSDictionary
*
)
attributes
sendNow
:
(
BOOL
)
sendNow
currentAPI
:
(
NSString
*
)
currentAPI
{
+
(
void
)
track
:
(
NSString
*
)
eventName
attributes
:
(
NSDictionary
*
)
attributes
sendNow
:
(
BOOL
)
sendNow
currentAPI
:
(
NSString
*
)
currentAPI
{
...
...
GMPhobos/Classes/Phobos.m
View file @
38380072
...
@@ -84,16 +84,9 @@ static BOOL isGray = YES;
...
@@ -84,16 +84,9 @@ static BOOL isGray = YES;
+
(
void
)
track
:
(
NSString
*
)
eventId
attributes
:
(
NSDictionary
*
)
attributes
{
+
(
void
)
track
:
(
NSString
*
)
eventId
attributes
:
(
NSDictionary
*
)
attributes
{
if
(
isGray
)
{
if
(
isGray
)
{
//埋点处如果没传sendNow 取灰度字段去控制
// 新埋点库支持实时上报数据,取灰度字段去控制
if
([
NewPhobos
sharedClient
].
isGraySendNow
==
nil
)
{
NewPhobos
*
phobos
=
[
NewPhobos
sharedClient
];
[
NewPhobos
track
:
eventId
attributes
:
attributes
sendNow
:
YES
];
[
NewPhobos
track
:
eventId
attributes
:
attributes
sendNow
:
phobos
.
isGraySendNow
];
}
else
{
if
([
NewPhobos
sharedClient
].
isGraySendNow
==
YES
)
{
[
NewPhobos
track
:
eventId
attributes
:
attributes
sendNow
:
YES
];
}
else
{
[
NewPhobos
track
:
eventId
attributes
:
attributes
sendNow
:
NO
];
}
}
}
else
{
}
else
{
[
OldPhobos
track
:
eventId
attributes
:
attributes
];
[
OldPhobos
track
:
eventId
attributes
:
attributes
];
}
}
...
...
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