Commit 69ce1c7a authored by 乔金柱's avatar 乔金柱

Merge branch 'ajp/param_type' into 'master'

referrerLink 字段无需转换成json再传递

See merge request !69
parents 9f980eb9 5626fc6e
......@@ -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"];
......
......@@ -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;
}
......
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