Authored by 周少峰

Merge branch 'feature/deletepy'

@@ -75,18 +75,4 @@ @@ -75,18 +75,4 @@
75 } 75 }
76 window.addEventListener('load', async_load, false); 76 window.addEventListener('load', async_load, false);
77 </script> 77 </script>
78 -<script>  
79 - window._py = window._py||[];  
80 - window._py.push(['a', 'MC..o8vMMWxEXDCiqYckD81lUX']);  
81 - window._py.push(['domain','stats.ipinyou.com']);  
82 - window._py.push(['e','']);  
83 - if(typeof _goodsData!='undefined'){  
84 - window._py.push(['pi',_goodsData]);  
85 - }  
86 - -function(d){  
87 - var f = 'https:' == d.location.protocol;var c = d.createElement('script');c.type='text/javascript';c.async=1;  
88 - c.src=(f ? 'https' : 'http') + '://'+(f?'fm.ipinyou.com':'fm.p0y.cn')+'/j/t/adv.js';  
89 - var h = d.getElementsByTagName("script")[0];h.parentNode.insertBefore(c, h);  
90 - }(document);  
91 -</script>  
92 </html> 78 </html>
@@ -93,18 +93,4 @@ @@ -93,18 +93,4 @@
93 } 93 }
94 window.addEventListener('load', async_load, false); 94 window.addEventListener('load', async_load, false);
95 </script> 95 </script>
96 -<script>  
97 - window._py = window._py||[];  
98 - window._py.push(['a', 'MC..o8vMMWxEXDCiqYckD81lUX']);  
99 - window._py.push(['domain','stats.ipinyou.com']);  
100 - window._py.push(['e','']);  
101 - if(typeof _goodsData!='undefined'){  
102 - window._py.push(['pi',_goodsData]);  
103 - }  
104 - -function(d){  
105 - var f = 'https:' == d.location.protocol;var c = d.createElement('script');c.type='text/javascript';c.async=1;  
106 - c.src=(f ? 'https' : 'http') + '://'+(f?'fm.ipinyou.com':'fm.p0y.cn')+'/j/t/adv.js';  
107 - var h = d.getElementsByTagName("script")[0];h.parentNode.insertBefore(c, h);  
108 - }(document);  
109 -</script>  
110 </html> 96 </html>
@@ -107,18 +107,4 @@ @@ -107,18 +107,4 @@
107 } 107 }
108 window.addEventListener('load', async_load, false); 108 window.addEventListener('load', async_load, false);
109 </script> 109 </script>
110 -<script>  
111 - window._py = window._py||[];  
112 - window._py.push(['a', 'MC..o8vMMWxEXDCiqYckD81lUX']);  
113 - window._py.push(['domain','stats.ipinyou.com']);  
114 - window._py.push(['e','']);  
115 - if(typeof _goodsData!='undefined'){  
116 - window._py.push(['pi',_goodsData]);  
117 - }  
118 - -function(d){  
119 - var f = 'https:' == d.location.protocol;var c = d.createElement('script');c.type='text/javascript';c.async=1;  
120 - c.src=(f ? 'https' : 'http') + '://'+(f?'fm.ipinyou.com':'fm.p0y.cn')+'/j/t/adv.js';  
121 - var h = d.getElementsByTagName("script")[0];h.parentNode.insertBefore(c, h);  
122 - }(document);  
123 -</script>  
124 </html> 110 </html>
@@ -757,8 +757,6 @@ class Helpers @@ -757,8 +757,6 @@ class Helpers
757 757
758 // 分析用: 商品ID列表 758 // 分析用: 商品ID列表
759 $analysis['ids'][] = $value['product_id']; 759 $analysis['ids'][] = $value['product_id'];
760 - // 分析用: 品友  
761 - $analysis['ipinyou'] .= $value['product_skn'] . ',' . $value['buy_number'] . ';';//iponyou变更为skn  
762 // 分析用: CRITEO 760 // 分析用: CRITEO
763 $analysis['criteo'][] = array( 761 $analysis['criteo'][] = array(
764 'id' => $value['product_skn'], 762 'id' => $value['product_skn'],
@@ -769,8 +767,6 @@ class Helpers @@ -769,8 +767,6 @@ class Helpers
769 else { 767 else {
770 // 分析用: 商品ID列表 768 // 分析用: 商品ID列表
771 $analysis['ids'][] = $value['product_id']; 769 $analysis['ids'][] = $value['product_id'];
772 - // 分析用: 品友  
773 - $analysis['ipinyou'] .= $value['product_skn'] . ',' . $value['buy_number'] . ';';  
774 // 分析用: CRITEO 770 // 分析用: CRITEO
775 $analysis['criteo'][] = array( 771 $analysis['criteo'][] = array(
776 'id' => $value['product_skn'], 772 'id' => $value['product_skn'],
@@ -377,12 +377,4 @@ _mvq.push(['$logConversion']); @@ -377,12 +377,4 @@ _mvq.push(['$logConversion']);
377 _mvq.push(['$addItem', '', /*商品id*/ '{{cartEnsure.ids}}', '', '']); 377 _mvq.push(['$addItem', '', /*商品id*/ '{{cartEnsure.ids}}', '', '']);
378 _mvq.push(['$logData']); 378 _mvq.push(['$logData']);
379 </script> 379 </script>
380 -<script>  
381 -!function(w,d,e){  
382 -var _money='{{cartEnsure.ipinyouAmount}}';  
383 -var _productList='{{cartEnsure.ipinyou}}';  
384 -var b=location.href,c=d.referrer,f,s,g=d.cookie,h=g.match(/(^|;)\s*ipycookie=([^;]*)/),i=g.match(/(^|;)\s*ipysession=([^;]*)/);if (w.parent!=w){f=b;b=c;c=f;};u='//stats.ipinyou.com/cvt?a='+e('MC.Ok.7NFMIlCH_F_LE2riRlF2r_')+'&c='+e(h?h[2]:'')+'&s='+e(i?i[2].match(/jump\%3D(\d+)/)[1]:'')+'&u='+e(b)+'&r='+e(c)+'&rd='+(new Date()).getTime()+'&Money='+e(_money)+'&ProductList='+e(_productList)+'&e=';  
385 -function _(){if(!d.body){setTimeout(_(),100);}else{s= d.createElement('script');s.src = u;d.body.insertBefore(s,d.body.firstChild);}}_();  
386 -}(window,document,encodeURIComponent);  
387 -</script>  
388 {{> layout/footer}} 380 {{> layout/footer}}
@@ -62,9 +62,6 @@ @@ -62,9 +62,6 @@
62 {{/ shoppingpay}} 62 {{/ shoppingpay}}
63 </div> 63 </div>
64 64
65 -{{!-- 品有统计代码 --}}  
66 -{{> shopping/pinyou-analysis}}  
67 -  
68 {{!-- criteo统计代码 --}} 65 {{!-- criteo统计代码 --}}
69 {{> pay/pay-analysis}} 66 {{> pay/pay-analysis}}
70 67
@@ -148,7 +148,4 @@ @@ -148,7 +148,4 @@
148 {{> shopping/box-buy-analysis}} 148 {{> shopping/box-buy-analysis}}
149 {{/ shoppingpay}} 149 {{/ shoppingpay}}
150 150
151 -{{!-- 品有统计代码 --}}  
152 -{{> shopping/pinyou-analysis}}  
153 -  
154 {{> layout/footer}} 151 {{> layout/footer}}
@@ -26,9 +26,6 @@ @@ -26,9 +26,6 @@
26 </script> 26 </script>
27 {{/shoppingpay}} 27 {{/shoppingpay}}
28 28
29 -{{!-- 品有统计代码 --}}  
30 -{{> shopping/pinyou-analysis}}  
31 -  
32 {{!-- criteo统计代码 --}} 29 {{!-- criteo统计代码 --}}
33 {{> pay/pay-analysis}} 30 {{> pay/pay-analysis}}
34 31
@@ -31,18 +31,4 @@ var _gaq = _gaq || []; @@ -31,18 +31,4 @@ var _gaq = _gaq || [];
31 window.attachEvent('onload', async_load); 31 window.attachEvent('onload', async_load);
32 } 32 }
33 })(); 33 })();
34 -</script>  
35 -<script>  
36 - window._py = window._py||[];  
37 - window._py.push(['a', 'MC..o8vMMWxEXDCiqYckD81lUX']);  
38 - window._py.push(['domain','stats.ipinyou.com']);  
39 - window._py.push(['e','']);  
40 - if(typeof _goodsData!='undefined'){  
41 - window._py.push(['pi',_goodsData]);  
42 - }  
43 - -function(d){  
44 - var f = 'https:' == d.location.protocol;var c = d.createElement('script');c.type='text/javascript';c.async=1;  
45 - c.src=(f ? 'https' : 'http') + '://'+(f?'fm.ipinyou.com':'fm.p0y.cn')+'/j/t/adv.js';  
46 - var h = d.getElementsByTagName("script")[0];h.parentNode.insertBefore(c, h);  
47 - }(document);  
48 </script> 34 </script>
1 -{{# pinyou}}  
2 -<script>  
3 -!function(w,d,e){  
4 -var _orderno='{{orderNum}}';  
5 -var _money='{{count}}';  
6 -var _productList='{{productList}}';  
7 -var b=location.href,c=d.referrer,f,s,g=d.cookie,h=g.match(/(^|;)\s*ipycookie=([^;]*)/),i=g.match(/(^|;)\s*ipysession=([^;]*)/);if (w.parent!=w){f=b;b=c;c=f;};u='//stats.ipinyou.com/cvt?a='+e('MC.2z.Rg-AQqSqQi2GykX12LUxI0')+'&c='+e(h?h[2]:'')+'&s='+e(i?i[2].match(/jump\%3D(\d+)/)[1]:'')+'&u='+e(b)+'&r='+e(c)+'&rd='+(new Date()).getTime()+'&OrderNo='+e(_orderno)+'&Money='+e(_money)+'&ProductList='+e(_productList)+'&e=';  
8 -function _(){if(!d.body){setTimeout(_(),100);}else{s= d.createElement('script');s.src = u;d.body.insertBefore(s,d.body.firstChild);}}_();  
9 -}(window,document,encodeURIComponent);  
10 -</script>  
11 -{{/ pinyou}}  
@@ -42,7 +42,7 @@ class CartModel @@ -42,7 +42,7 @@ class CartModel
42 $result = array(); 42 $result = array();
43 43
44 // 存放分析用的数据 44 // 存放分析用的数据
45 - $analysisData = array('ipinyou' => ''); 45 + $analysisData = array();
46 46
47 do { 47 do {
48 $result['isEmpty'] = false; 48 $result['isEmpty'] = false;
@@ -200,8 +200,6 @@ class CartModel @@ -200,8 +200,6 @@ class CartModel
200 200
201 // 增加第三方分析用的数据 201 // 增加第三方分析用的数据
202 $result['ids'] = empty($analysisData['ids']) ? '' : implode(',', $analysisData['ids']); 202 $result['ids'] = empty($analysisData['ids']) ? '' : implode(',', $analysisData['ids']);
203 - $result['ipinyou'] = empty($analysisData['ipinyou']) ? '' : $analysisData['ipinyou'];  
204 - $result['ipinyouAmount'] = isset($result['productAllA']) ? $result['productAllA'] : '0.00';  
205 $result['criteo'] = empty($analysisData['criteo']) ? "''" : json_encode($analysisData['criteo']); 203 $result['criteo'] = empty($analysisData['criteo']) ? "''" : json_encode($analysisData['criteo']);
206 204
207 return $result; 205 return $result;
@@ -707,7 +705,7 @@ class CartModel @@ -707,7 +705,7 @@ class CartModel
707 private static function filterCartPay($pay, $cartType, $isAdvanceCart, $uid) 705 private static function filterCartPay($pay, $cartType, $isAdvanceCart, $uid)
708 { 706 {
709 // 存放分析用的数据 707 // 存放分析用的数据
710 - $analysisData = array('ipinyou' => ''); 708 + $analysisData = array();
711 $result = array(); 709 $result = array();
712 710
713 do { 711 do {