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
c9b61582
Commit
c9b61582
authored
Aug 24, 2020
by
yueming lu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需改referlink
parent
0480fb9a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
GMViewController.m
Example/GMPhobos/GMViewController.m
+1
-0
NewPhobos.m
GMPhobos/Classes/NewPhobos.m
+2
-2
GMPhobosPageViewModel.m
GMPhobos/Classes/PhobosDataStorage/GMPhobosPageViewModel.m
+0
-1
No files found.
Example/GMPhobos/GMViewController.m
View file @
c9b61582
...
...
@@ -143,6 +143,7 @@ NSString *const MockCityId = @"beijing";
[
dict
setObject
:
@"extra_param"
forKey
:
@"extra_param"
];
[
dict
setObject
:
@"referrer_tab_name"
forKey
:
@"referrer_tab_name"
];
[
dict
setObject
:
@
(
0
)
forKey
:
@"is_push"
];
[
dict
setObject
:@[
@"home"
,
@"search_home"
]
forKey
:
@"referrer_link"
];
NSString
*
name
=
[
NSString
stringWithFormat
:
@"page_view-%d"
,
index
];
[
Phobos
track
:
name
attributes
:
dict
];
...
...
GMPhobos/Classes/NewPhobos.m
View file @
c9b61582
...
...
@@ -308,9 +308,9 @@ static NewPhobos *_sharedClient;
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
;
}
...
...
GMPhobos/Classes/PhobosDataStorage/GMPhobosPageViewModel.m
View file @
c9b61582
...
...
@@ -25,7 +25,6 @@
NSMutableDictionary
*
messageDict
=
[
NSMutableDictionary
dictionaryWithDictionary
:
data
];
[
messageDict
setValue
:
model
.
message_item_id
forKey
:
@"message_item_id"
];
model
.
data
=
[
GMPhobosTool
dictionaryToJsonString
:
messageDict
];
NSLog
(
@"referrer_link*******%@"
,
messageDict
[
@"referrer_link"
]);
model
.
status
=
PhobosDataSendStatus_wait
;
model
.
phobos_type
=
phobosType
;
model
.
api
=
urlapi
;
...
...
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