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
69ce1c7a
Commit
69ce1c7a
authored
Sep 04, 2020
by
乔金柱
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ajp/param_type' into 'master'
referrerLink 字段无需转换成json再传递 See merge request
!69
parents
9f980eb9
5626fc6e
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
+1
-1
OldPhobos.m
GMPhobos/Classes/OldPhobos.m
+3
-3
No files found.
GMPhobos/Classes/NewPhobos.m
View file @
69ce1c7a
...
...
@@ -273,7 +273,7 @@ static NewPhobos *_sharedClient;
[
dict
setObject
:
PhobosSafeString
(
page
.
pageName
)
forKey
:
@"page_name"
];
[
dict
setObject
:
PhobosSafeString
(
page
.
businessId
)
forKey
:
@"business_id"
];
[
dict
setObject
:
PhobosSafeString
(
page
.
referer
)
forKey
:
@"referrer"
];
[
dict
setObject
:
PhobosSafeString
([
PhobosUtil
convertToJsonString
:
page
.
referrerLink
])
forKey
:
@"referrer_link"
];
[
dict
setObject
:
page
.
referrerLink
.
count
?:@[]
forKey
:
@"referrer_link"
];
[
dict
setObject
:
@
(
0
)
forKey
:
@"fake"
];
[
dict
setObject
:
PhobosSafeString
(
page
.
referrerId
)
forKey
:
@"referrer_id"
];
[
dict
setObject
:
PhobosSafeString
(
page
.
extraParam
)
forKey
:
@"extra_param"
];
...
...
GMPhobos/Classes/OldPhobos.m
View file @
69ce1c7a
...
...
@@ -357,7 +357,7 @@ static OldPhobos *sharedClient = nil;
[
dict
setObject
:
PhobosSafeString
(
page
.
pageName
)
forKey
:
@"page_name"
];
[
dict
setObject
:
PhobosSafeString
(
page
.
businessId
)
forKey
:
@"business_id"
];
[
dict
setObject
:
PhobosSafeString
(
page
.
referer
)
forKey
:
@"referrer"
];
[
dict
setObject
:
PhobosSafeString
([
PhobosUtil
convertToJsonString
:
page
.
referrerLink
])
forKey
:
@"referrer_link"
];
[
dict
setObject
:
page
.
referrerLink
.
count
?@[]
forKey
:
@"referrer_link"
];
[
dict
setObject
:
@
(
0
)
forKey
:
@"fake"
];
[
dict
setObject
:
PhobosSafeString
(
page
.
referrerId
)
forKey
:
@"referrer_id"
];
[
dict
setObject
:
PhobosSafeString
(
page
.
extraParam
)
forKey
:
@"extra_param"
];
...
...
@@ -413,9 +413,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
:
[
PhobosUtil
convertToJsonString
:
referrerLink
]
forKey
:
@"referrer_link"
];
[
attributesParams
setValue
:
referrerLink
forKey
:
@"referrer_link"
];
}
else
{
[
attributesParams
setValue
:
[
PhobosUtil
convertToJsonString
:@[]
]
forKey
:
@"referrer_link"
];
[
attributesParams
setValue
:
@[
]
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