Commit c9b61582 authored by yueming lu's avatar yueming lu

需改referlink

parent 0480fb9a
...@@ -143,6 +143,7 @@ NSString *const MockCityId = @"beijing"; ...@@ -143,6 +143,7 @@ NSString *const MockCityId = @"beijing";
[dict setObject:@"extra_param" forKey:@"extra_param"]; [dict setObject:@"extra_param" forKey:@"extra_param"];
[dict setObject:@"referrer_tab_name" forKey:@"referrer_tab_name"]; [dict setObject:@"referrer_tab_name" forKey:@"referrer_tab_name"];
[dict setObject:@(0) forKey:@"is_push"]; [dict setObject:@(0) forKey:@"is_push"];
[dict setObject:@[@"home", @"search_home"] forKey:@"referrer_link"];
NSString *name = [NSString stringWithFormat:@"page_view-%d", index]; NSString *name = [NSString stringWithFormat:@"page_view-%d", index];
[Phobos track:name attributes:dict]; [Phobos track:name attributes:dict];
......
...@@ -308,9 +308,9 @@ static NewPhobos *_sharedClient; ...@@ -308,9 +308,9 @@ static NewPhobos *_sharedClient;
if (![attributes.allKeys containsObject:@"referrer_link"]) { if (![attributes.allKeys containsObject:@"referrer_link"]) {
NSMutableDictionary *attributesParams = [NSMutableDictionary dictionaryWithDictionary:attributes]; NSMutableDictionary *attributesParams = [NSMutableDictionary dictionaryWithDictionary:attributes];
if ([referrerLink isKindOfClass:[NSArray class]] && referrerLink.count) { if ([referrerLink isKindOfClass:[NSArray class]] && referrerLink.count) {
[attributesParams setValue:[PhobosUtil convertToJsonString:referrerLink] forKey:@"referrer_link"]; [attributesParams setValue:referrerLink forKey:@"referrer_link"];
} else { } else {
[attributesParams setValue:[PhobosUtil convertToJsonString:@[]] forKey:@"referrer_link"]; [attributesParams setValue:@[] forKey:@"referrer_link"];
} }
attributes = attributesParams; attributes = attributesParams;
} }
......
...@@ -25,7 +25,6 @@ ...@@ -25,7 +25,6 @@
NSMutableDictionary *messageDict = [NSMutableDictionary dictionaryWithDictionary:data]; NSMutableDictionary *messageDict = [NSMutableDictionary dictionaryWithDictionary:data];
[messageDict setValue:model.message_item_id forKey:@"message_item_id"]; [messageDict setValue:model.message_item_id forKey:@"message_item_id"];
model.data = [GMPhobosTool dictionaryToJsonString:messageDict]; model.data = [GMPhobosTool dictionaryToJsonString:messageDict];
NSLog(@"referrer_link*******%@", messageDict[@"referrer_link"]);
model.status = PhobosDataSendStatus_wait; model.status = PhobosDataSendStatus_wait;
model.phobos_type = phobosType; model.phobos_type = phobosType;
model.api = urlapi; model.api = urlapi;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment