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
241ea042
Commit
241ea042
authored
Apr 14, 2020
by
井庆林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将referrer_link转为json
parent
7c0e6652
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
NewPhobos.m
GMPhobos/Classes/NewPhobos.m
+2
-2
OldPhobos.m
GMPhobos/Classes/OldPhobos.m
+2
-2
No files found.
GMPhobos/Classes/NewPhobos.m
View file @
241ea042
...
...
@@ -305,9 +305,9 @@ static dispatch_semaphore_t _phobos_semaphore;
if
(
!
[
attributes
.
allKeys
containsObject
:
@"referrer_link"
])
{
NSMutableDictionary
*
attributesParams
=
[
NSMutableDictionary
dictionaryWithDictionary
:
attributes
];
if
([
referrerLink
isKindOfClass
:[
NSArray
class
]]
&&
referrerLink
.
count
)
{
[
attributesParams
setValue
:
referrerLink
forKey
:
@"referrer_link"
];
[
attributesParams
setValue
:
[
PhobosUtil
convertToJsonString
:
referrerLink
]
forKey
:
@"referrer_link"
];
}
else
{
[
attributesParams
setValue
:
@[
]
forKey
:
@"referrer_link"
];
[
attributesParams
setValue
:
[
PhobosUtil
convertToJsonString
:@[]
]
forKey
:
@"referrer_link"
];
}
attributes
=
attributesParams
;
}
...
...
GMPhobos/Classes/OldPhobos.m
View file @
241ea042
...
...
@@ -404,9 +404,9 @@ static OldPhobos *sharedClient = nil;
if
(
!
[
attributes
.
allKeys
containsObject
:
@"referrer_link"
])
{
NSMutableDictionary
*
attributesParams
=
[
NSMutableDictionary
dictionaryWithDictionary
:
attributes
];
if
([
referrerLink
isKindOfClass
:[
NSArray
class
]]
&&
referrerLink
.
count
)
{
[
attributesParams
setValue
:
referrerLink
forKey
:
@"referrer_link"
];
[
attributesParams
setValue
:
[
PhobosUtil
convertToJsonString
:
referrerLink
]
forKey
:
@"referrer_link"
];
}
else
{
[
attributesParams
setValue
:
@[
]
forKey
:
@"referrer_link"
];
[
attributesParams
setValue
:
[
PhobosUtil
convertToJsonString
:@[]
]
forKey
:
@"referrer_link"
];
}
attributes
=
attributesParams
;
}
...
...
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