Authored by Rock Zhang

1需付款与货到付款页面添加criteo统计数据

@@ -65,6 +65,8 @@ class PayModel @@ -65,6 +65,8 @@ class PayModel
65 $result['orderNum'] = $orderCode; 65 $result['orderNum'] = $orderCode;
66 $result['count'] = $order['payment_amount']; 66 $result['count'] = $order['payment_amount'];
67 $result['paymentType'] = ($order['payment_type'] == 1 ? '在线支付' : '货到付款'); 67 $result['paymentType'] = ($order['payment_type'] == 1 ? '在线支付' : '货到付款');
  68 + // 订单商品(用于订单统计)
  69 + $result['orderGoods'] = $order['order_goods'];
68 70
69 //统计成交的skn 71 //统计成交的skn
70 $sknList = array(); 72 $sknList = array();
@@ -220,8 +222,6 @@ class PayModel @@ -220,8 +222,6 @@ class PayModel
220 // 订单数(用于订单统计) 222 // 订单数(用于订单统计)
221 $result['orderCount'] = $orderCount; 223 $result['orderCount'] = $orderCount;
222 $result['is_advance'] = $order['attribute'] == 5 ? 'Y' : 'N'; 224 $result['is_advance'] = $order['attribute'] == 5 ? 'Y' : 'N';
223 - // 订单商品(用于订单统计)  
224 - $result['orderGoods'] = $order['order_goods'];  
225 // 订单商品数(用于订单统计) 225 // 订单商品数(用于订单统计)
226 $result['ordersGoodsNums'] = count($order['order_goods']); 226 $result['ordersGoodsNums'] = count($order['order_goods']);
227 } while (false); 227 } while (false);
@@ -69,6 +69,10 @@ class PayController extends WebAction @@ -69,6 +69,10 @@ class PayController extends WebAction
69 'count' => $data['count'], 69 'count' => $data['count'],
70 'productList' => $data['pinyouGoods'] 70 'productList' => $data['pinyouGoods']
71 ), 71 ),
  72 + 'criteo' => array(// criteo统计代码有关数据
  73 + 'orderNum' => $data['orderNum'],
  74 + 'items' => $data['orderGoods']
  75 + ),
72 'payPage' => true 76 'payPage' => true
73 )); 77 ));
74 } 78 }