Authored by 孙凯

删除 RN IMAGE_URL字段的大数据曝光 review by hongmo

... ... @@ -733,7 +733,6 @@ function resourceDataExposure(json) {
item.data && item.data.map((item2, i) => {
banner.push({
I_INDEX: i + 1,
IMAGE_URL: item2.src ? item2.src : '',
ACTION_URL: item2.url ? item2.url : '',
});
});
... ... @@ -747,8 +746,6 @@ function resourceDataExposure(json) {
SHOP_ID: '',
BRAND_ID: item2.id ? item2.id : '',
BRAND_NAME: item2.name ? item2.name : '',
IMAGE_URL: item2.src ? item2.src : '',
});
});
... ...
... ... @@ -454,7 +454,6 @@ export function getHotProduct() {
payload && payload.map((item, i) => {
logData.push({
I_INDEX: i + 1,
IMAGE_URL: item.default_images ? item.default_images : '',
PRODUCT_SKN: item.product_skn ? item.product_skn : 0,
});
});
... ... @@ -578,7 +577,6 @@ export function getProductList(reload=false) {
payload.list && payload.list.map((item, i) => {
logData.push({
I_INDEX: i + 1,
IMAGE_URL: item.default_images ? item.default_images : '',
PRODUCT_SKN: item.product_skn ? item.product_skn : 0,
});
});
... ... @@ -955,7 +953,6 @@ export function getProductListForPersopn(reload=false) {
payload.list && payload.list.map((item, i) => {
logData.push({
I_INDEX: i + 1,
IMAGE_URL: item.default_images ? item.default_images : '',
PRODUCT_SKN: item.product_skn ? item.product_skn : 0,
});
});
... ... @@ -1028,7 +1025,6 @@ export function getProductListForNew(reload=false) {
payload.list && payload.list.map((item, i) => {
logData.push({
I_INDEX: i + 1,
IMAGE_URL: item.default_images ? item.default_images : '',
PRODUCT_SKN: item.product_skn ? item.product_skn : 0,
});
});
... ...
... ... @@ -153,7 +153,6 @@ export function parseShopResources(json, shopId) {
shopTopBanner_APP = shopTopBanner_APPParser(resData);
logList.push({
I_INDEX : '1',
IMAGE_URL: shopTopBanner_APP ? shopTopBanner_APP : '',
ACTION_URL : '',
});
break;
... ... @@ -162,7 +161,6 @@ export function parseShopResources(json, shopId) {
oneRowTwoColImages_APP.map((item, i) => {
logList.push({
I_INDEX : i + 1,
IMAGE_URL: item.src,
ACTION_URL : item.url,
});
});
... ... @@ -179,7 +177,6 @@ export function parseShopResources(json, shopId) {
largeSlideImg_APP.map((item, i) => {
logList.push({
I_INDEX : i + 1,
IMAGE_URL: item.src,
ACTION_URL : item.url,
});
});
... ... @@ -189,7 +186,6 @@ export function parseShopResources(json, shopId) {
recommend_APP.list.map((item, i) => {
logList.push({
I_INDEX : i + 1,
IMAGE_URL: item.src,
ACTION_URL : item.url,
});
});
... ... @@ -212,7 +208,7 @@ export function parseShopResources(json, shopId) {
});
}
});
let data = {
shopTopBanner_APP,
oneRowTwoColImages_APP,
... ...
... ... @@ -720,7 +720,7 @@ function resourceDataExposure(json) {
if (!json) {
return;
}
let hot = [];
let banner = [];
json.map((item) => {
... ... @@ -728,11 +728,10 @@ function resourceDataExposure(json) {
item.data && item.data.map((item2, i) => {
banner.push({
I_INDEX: i + 1,
IMAGE_URL: item2.src ? item2.src : '',
ACTION_URL: item2.url ? item2.url : '',
});
});
}
if (item.template_name && item.template_name == 'custom_brands') {
... ... @@ -742,11 +741,9 @@ function resourceDataExposure(json) {
SHOP_ID: '',
BRAND_ID: item2.id ? item2.id : '',
BRAND_NAME: item2.name ? item2.name : '',
IMAGE_URL: item2.src ? item2.src : '',
});
});
}
});
... ... @@ -795,9 +792,9 @@ function brandListDataExposure(json) {
}
logAllList[prop] = logList;
}
}
}
new_list && new_list.map((item, i) => {
logNewList.push({
I_INDEX: i + 1,
... ...
... ... @@ -166,7 +166,6 @@ function parseFloors(json) {
data.map((item, i) => {
logData.push({
I_INDEX: i + 1,
IMAGE_URL: item.url,
ACTION_URL: item.src,
});
});
... ... @@ -175,7 +174,6 @@ function parseFloors(json) {
data.map((item, i) => {
logData.push({
I_INDEX: i + 1,
IMAGE_URL: item.url,
ACTION_URL: item.src,
});
});
... ... @@ -189,7 +187,6 @@ function parseFloors(json) {
data = single_image(item.data);
logData.push({
I_INDEX: 1,
IMAGE_URL: data.url,
ACTION_URL: data.src,
});
} else if (templateName == 'getCoupon') {
... ... @@ -204,7 +201,6 @@ function parseFloors(json) {
} else {
logData.push({
I_INDEX: 1,
IMAGE_URL: data.image.url,
ACTION_URL: data.image.src,
COUPON_ID: data.couponID,
});
... ... @@ -284,7 +280,7 @@ export function getCoupon(couponID) {
PAGE_URL: '',
COUP_ID: couponID,
};
ReactNative.NativeModules.YH_CommonHelper.logEvent('YB_GET_COUP', param);
}
... ...
... ... @@ -175,7 +175,7 @@ class HomeContainer extends Component {
ReactNative.NativeModules.YH_CommonHelper.jumpWithUrl(url);
let {channel ,data} = this.props;
let rec_id = '';
let rec_pose = '';
if (channel == 1) {
... ... @@ -195,7 +195,6 @@ class HomeContainer extends Component {
'PRD_ID': productId,
'PRD_NUM': parseInt(index)+1,
'ACTION_ID': 1,
'IMAGE_URL': imgUrl,
'REC_ID': rec_id,
'REC_POSE': rec_pose
};
... ... @@ -206,7 +205,6 @@ class HomeContainer extends Component {
let param = {
'PRD_ID': productId,
'NAV_NUM': parseInt(index)+1,
'IMAGE_URL': imgUrl,
'REC_ID': rec_id
};
... ... @@ -246,7 +244,6 @@ class HomeContainer extends Component {
'F_ID': floorID,
'F_NAME': floorName,
'F_URL': jumpUrl,
'IMAGE_URL': imageUrl ? imageUrl :'',
'F_INDEX': parseInt(floorIndex)+1,
'I_INDEX': parseInt(index)+1
};
... ...
... ... @@ -44,7 +44,7 @@ function composeFloorData(payload, channel=1) {
let expsoeItem = exposeDataForFloor(item, i, channel);
payload.list[i] = expsoeItem;
allFloorHeight = allFloorHeight + floorHeight;
}
... ... @@ -764,7 +764,7 @@ function homeDataParse(data, channel) {
let {list, cached, isFetching, isFirstLoad, endReached, favorite, bottomBanner, hotList, newList, selectIndex} = data;
let floorList = list.size > 0 ? list.toArray() : cached.get('list').toArray();
let favoriteList = favorite ? favorite.get('list') : null;
let bottomBannerList = bottomBanner ? bottomBanner.get('list') : null;
let dataSource = {};
... ... @@ -923,7 +923,6 @@ function parseReportData(list) {
let bannerItem = bannerList[j];
let bannerParam = {
'I_INDEX': j+1,
'IMAGE_URL': bannerItem&&bannerItem.src ? bannerItem.src : '',
'ACTION_URL': bannerItem&&bannerItem.url ? bannerItem.url : ''
};
floorDataArr.push(bannerParam);
... ... @@ -934,7 +933,6 @@ function parseReportData(list) {
let announceItem = announceList[j];
let announceParam = {
'I_INDEX': j+1,
'IMAGE_URL': floorItem&&floorItem.announcement_img ? floorItem.announcement_img : '',
'ACTION_URL': announceItem&&announceItem.url ? announceItem.url : ''
};
floorDataArr.push(announceParam);
... ... @@ -949,14 +947,12 @@ function parseReportData(list) {
let brandItem = brandList[j];
let brandParam = {
'I_INDEX': j+1,
'IMAGE_URL': brandItem&&brandItem.src ? brandItem.src : '',
'ACTION_URL': brandItem&&brandItem.url ? brandItem.url : ''
};
floorDataArr.push(brandParam);
}
let moreParam = {
'I_INDEX': brandList.length+1,
'IMAGE_URL': moreItem&&moreItem.src ? moreItem.src : '',
'ACTION_URL': moreItem&&moreItem.url ? moreItem.url : ''
}
floorDataArr.push(moreParam);
... ... @@ -967,14 +963,12 @@ function parseReportData(list) {
let topicItem = topicList[j];
let topicparam = {
'I_INDEX': j+1,
'IMAGE_URL': topicItem&&topicItem.src ? topicItem.src : '',
'ACTION_URL': topicItem&&topicItem.url ? topicItem.url : ''
};
floorDataArr.push(topicparam);
}
let moreParam = {
'I_INDEX': 0,
'IMAGE_URL': '',
'ACTION_URL': moreItem.more_url ? moreItem.more_url : ''
}
floorDataArr.push(moreParam);
... ... @@ -988,7 +982,6 @@ function parseReportData(list) {
let articalItem = articalList[j];
let articalParam = {
'I_INDEX': j+1,
'IMAGE_URL': articalItem&&articalItem.src ? articalItem.src : '',
'ACTION_URL': articalItem&&articalItem.url ? articalItem.url : ''
};
floorDataArr.push(articalParam);
... ... @@ -999,14 +992,12 @@ function parseReportData(list) {
let collectionItem = collectionList[j];
let collectionParam = {
'I_INDEX': j+1+index,
'IMAGE_URL': collectionItem&&collectionItem.src ? collectionItem.src : '',
'ACTION_URL': collectionItem&&collectionItem.url ? collectionItem.url : ''
};
floorDataArr.push(collectionParam);
}
let moreParam = {
'I_INDEX': 0,
'IMAGE_URL': '',
'ACTION_URL': moreItem&&moreItem.more_url ? moreItem.more_url : ''
};
floorDataArr.push(moreParam);
... ... @@ -1027,7 +1018,6 @@ function parseReportData(list) {
let bannerItem = bannerList[j];
let bannerParam = {
'I_INDEX': j+1,
'IMAGE_URL': bannerItem&&bannerItem.src ? bannerItem.src : '',
'ACTION_URL': bannerItem&&bannerItem.url ? bannerItem.url : ''
};
floorDataArr.push(bannerParam);
... ... @@ -1038,7 +1028,6 @@ function parseReportData(list) {
let recommendItem = recommendList[j];
let recommendParam = {
'I_INDEX': j+1+index,
'IMAGE_URL': recommendItem&&recommendItem.src ? recommendItem.src : '',
'ACTION_URL': recommendItem&&recommendItem.url ? recommendItem.url : ''
};
floorDataArr.push(recommendParam);
... ... @@ -1046,7 +1035,6 @@ function parseReportData(list) {
let moreParam = {
'I_INDEX': 0,
'IMAGE_URL': '',
'ACTION_URL': moreItem&&moreItem.more_url ? moreItem.more_url : ''
};
floorDataArr.push(moreParam);
... ... @@ -1054,7 +1042,6 @@ function parseReportData(list) {
let adsItem = floorItem.data;
let adsParam = {
'I_INDEX': 1,
'IMAGE_URL': adsItem&&adsItem.src ? adsItem.src : '',
'ACTION_URL': adsItem&&adsItem.url ? adsItem.url : ''
};
floorDataArr.push(adsParam);
... ... @@ -1067,7 +1054,6 @@ function parseReportData(list) {
let leftItem = leftList[j];
let leftParam = {
'I_INDEX': j+1,
'IMAGE_URL': leftItem&&leftItem.src ? leftItem.src : '',
'ACTION_URL': leftItem&&leftItem.url ? leftItem.url : ''
};
floorDataArr.push(leftParam);
... ... @@ -1078,7 +1064,6 @@ function parseReportData(list) {
let rightItem = rightList[j];
let rightParam = {
'I_INDEX': j+1+index,
'IMAGE_URL': rightItem&&rightItem.src ? rightItem.src : '',
'ACTION_URL': rightItem&&rightItem.url ? rightItem.url : ''
};
floorDataArr.push(rightParam);
... ... @@ -1097,7 +1082,6 @@ function parseReportData(list) {
let bannerItem = bannerList[j];
let bannerParam = {
'I_INDEX': j+1,
'IMAGE_URL': bannerItem&&bannerItem.src ? bannerItem.src : '',
'ACTION_URL': bannerItem&&bannerItem.url ? bannerItem.url : ''
};
floorDataArr.push(bannerParam);
... ... @@ -1108,7 +1092,6 @@ function parseReportData(list) {
let product = productList[j];
let productParam = {
'I_INDEX': j+1+index,
'IMAGE_URL': product&&product.default_images ? product.default_images : '',
'PRD_SKN': product&&product.product_skn ? product.product_skn : ''
};
floorDataArr.push(productParam);
... ... @@ -1116,7 +1099,6 @@ function parseReportData(list) {
let moreParam = {
'I_INDEX': 0,
'IMAGE_URL': '',
'ACTION_URL': moreItem&&moreItem.more_url ? moreItem.more_url : ''
};
floorDataArr.push(moreParam);
... ... @@ -1128,7 +1110,6 @@ function parseReportData(list) {
let shopItem = shopList[j];
let shopParam = {
'I_INDEX': j+1,
'IMAGE_URL': shopItem&&shopItem.src ? shopItem.src : '',
'ACTION_URL': shopItem&&shopItem.url ? shopItem.url : ''
};
floorDataArr.push(shopParam);
... ... @@ -1136,7 +1117,6 @@ function parseReportData(list) {
let moreParam = {
'I_INDEX': 0,
'IMAGE_URL': '',
'ACTION_URL': moreItem&&moreItem.more_url ? moreItem.more_url : ''
};
floorDataArr.push(moreParam);
... ... @@ -1166,7 +1146,6 @@ function parseReportProductList(json) {
let product = list[i];
let param = {
'I_INDEX': i + index,
'IMAGE_URL': product&&product.default_images ? product.default_images : '',
'PRD_SKN': product&&product.product_skn ? product.product_skn : ''
}
productList.push(param);
... ...