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
303d6765
Commit
303d6765
authored
Mar 25, 2020
by
井庆林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code review
parent
29d7889e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
OldPhobos.m
GMPhobos/Classes/OldPhobos.m
+2
-0
PhobosSendManager.m
GMPhobos/Classes/PhobosSendManager.m
+2
-2
No files found.
GMPhobos/Classes/OldPhobos.m
View file @
303d6765
...
@@ -601,8 +601,10 @@ static NSString *sdkVersion = @"110";
...
@@ -601,8 +601,10 @@ static NSString *sdkVersion = @"110";
NSData
*
compressedData
=
[
PhobosUtil
compressData
:
JSON
];
NSData
*
compressedData
=
[
PhobosUtil
compressData
:
JSON
];
if
(
compressedData
)
{
if
(
compressedData
)
{
[
PhobosUtil
sendData
:
compressedData
currentAPI
:
currentAPI
success
:^
(
NSInteger
code
)
{
[
PhobosUtil
sendData
:
compressedData
currentAPI
:
currentAPI
success
:^
(
NSInteger
code
)
{
if
(
code
==
200
)
{
phobosLog
(
@"✈ ---------- ✈ data arrived Mars"
);
phobosLog
(
@"✈ ---------- ✈ data arrived Mars"
);
[
GMCache
removeObjectAtDocumentPathWithkey
:
PhobosTempCacheKeyStr
];
[
GMCache
removeObjectAtDocumentPathWithkey
:
PhobosTempCacheKeyStr
];
}
}];
}];
}
}
}
}
...
...
GMPhobos/Classes/PhobosSendManager.m
View file @
303d6765
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
[
total
addObjectsFromArray
:
immiDataArray
];
[
total
addObjectsFromArray
:
immiDataArray
];
if
(
total
.
count
>
0
)
{
if
(
total
.
count
>
0
)
{
[
self
sendDataArray
:
total
currentAPI
:
Phobos
.
sharedClient
.
serverAPI
success
:^
(
NSInteger
code
)
{
[
self
sendDataArray
:
total
currentAPI
:
Phobos
.
sharedClient
.
serverAPI
success
:^
(
NSInteger
code
)
{
if
(
code
)
{
if
(
code
==
200
)
{
[
GMCache
removeObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
[
GMCache
removeObjectAtDocumentPathWithkey
:
PhobosCacheKey
];
[
GMCache
removeObjectAtDocumentPathWithkey
:
PhobosTempCacheKey
];
[
GMCache
removeObjectAtDocumentPathWithkey
:
PhobosTempCacheKey
];
}
}
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
NSArray
*
exposureArray
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:[
PhobosUtil
MD5String
:
exposureAPI
]];
NSArray
*
exposureArray
=
[
GMCache
fetchObjectAtDocumentPathWithkey
:[
PhobosUtil
MD5String
:
exposureAPI
]];
if
(
exposureArray
.
count
>
0
)
{
if
(
exposureArray
.
count
>
0
)
{
[
self
sendDataArray
:
exposureArray
currentAPI
:
exposureAPI
success
:^
(
NSInteger
code
)
{
[
self
sendDataArray
:
exposureArray
currentAPI
:
exposureAPI
success
:^
(
NSInteger
code
)
{
if
(
code
)
{
if
(
code
=
200
)
{
[
GMCache
removeObjectAtDocumentPathWithkey
:[
PhobosUtil
MD5String
:
exposureAPI
]];
[
GMCache
removeObjectAtDocumentPathWithkey
:[
PhobosUtil
MD5String
:
exposureAPI
]];
}
}
}];
}];
...
...
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