Authored by 周少峰

order point unionKey

... ... @@ -866,7 +866,7 @@ $('.to-play input.submit').click(function() {
productSkn.push($(this).attr('data-skn'));
productSku.push($(this).attr('data-sku'));
});
window.addPoint('YB_SC_TOPAY_CLICK', {ORDER_CODE: d.data.order_code, PRD_NUM: productNum, ORDER_AMOUNT: d.data.order_amount, PRO_SKN: productSkn.join(','), PRO_SKU:productSku.join(','), UNIONCOOKIE: d.data.unionKey});
window.addPoint('YB_SC_TOPAY_CLICK', {ORDER_CODE: d.data.order_code, PRD_NUM: productNum, ORDER_AMOUNT: d.data.order_amount, PRO_SKN: productSkn.join(','), PRO_SKU:productSku.join(','), UNIONCOOKIE: encodeURIComponent(d.data.unionKey + '') || ''});
window.location.href = d.data.payUrl;
}
} else {
... ...
... ... @@ -1080,7 +1080,9 @@ class CartModel
$orderSubRes = CartData::orderSub($uid, $addressId, $cartType, $deliveryTimeId, $deliveryWayId, $invoiceType, $invoiceTitle, $invoiceContent, $receiverMobile, $paymentId, $paymentType, $remark, $couponCode, $promotionCode, $yohoCoin, $isPreContact, $isPrintPrice, $unionKey, $userAgent, $redEnvelopes, $isContinueBuy);
if ($orderSubRes && isset($orderSubRes['code'])) {
$orderSubRes['data']['unionKey'] = $unionKey;
$before = array(" "," ","\t","\n","\r");
$after = array("","","","","");
$orderSubRes['data']['unionKey'] = str_replace($before, $after, json_encode($unionKey));
$result = $orderSubRes;
}
} while (false);
... ...