Commit 241ea042 authored by 井庆林's avatar 井庆林

将referrer_link转为json

parent 7c0e6652
......@@ -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;
}
......
......@@ -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;
}
......
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