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
4b0ade0f
Commit
4b0ade0f
authored
May 13, 2019
by
井庆林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
先在debug中测试
parent
607955ba
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
Phobos.m
GMPhobos/Classes/Phobos.m
+6
-1
No files found.
GMPhobos/Classes/Phobos.m
View file @
4b0ade0f
...
...
@@ -448,6 +448,9 @@ static NSString *sdkVersion = @"110";
NSMutableArray
*
dataArray
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
if
(
dataArray
)
{
#ifdef DEBUG
[
dataArray
addObject
:
data
];
#else
if
(
data
[
@"type"
]
&&
[
data
[
@"type"
]
isEqualToString
:
@"page_view"
])
{
NSDictionary
*
pageParams
=
data
[
@"params"
];
NSDate
*
pageInTime
=
[
NSDate
dateWithTimeIntervalSince1970
:[
pageParams
[
@"in"
]
longLongValue
]];
...
...
@@ -464,7 +467,7 @@ static NSString *sdkVersion = @"110";
stop
=
YES
;
phobosLog
(
@"%s____数据校验失败"
,
__func__
);
#ifndef APPSTORE
UIAlertView
*
alertView
=
[[
UIAlertView
alloc
]
initWithTitle
:
@"PV埋点数据异常"
message
:
nil
delegate
:
nil
cancelButtonTitle
:
@"确定"
otherButtonTitles
:
nil
,
nil
];
UIAlertView
*
alertView
=
[[
UIAlertView
alloc
]
initWithTitle
:
@"PV埋点
可能
数据异常"
message
:
nil
delegate
:
nil
cancelButtonTitle
:
@"确定"
otherButtonTitles
:
nil
,
nil
];
[
alertView
show
];
#endif
}
...
...
@@ -478,6 +481,8 @@ static NSString *sdkVersion = @"110";
}
else
{
[
dataArray
addObject
:
data
];
}
#endif
}
else
{
dataArray
=
[
NSMutableArray
arrayWithObject
:
data
];
}
...
...
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