Showing
2 changed files
with
18 additions
and
1 deletions
@@ -290,6 +290,18 @@ function submitOrder() { | @@ -290,6 +290,18 @@ function submitOrder() { | ||
290 | tip.show('系统繁忙,请稍后再试!'); | 290 | tip.show('系统繁忙,请稍后再试!'); |
291 | return; | 291 | return; |
292 | } | 292 | } |
293 | + | ||
294 | + /* tar add 161116 */ | ||
295 | + if (res.unionCookie) { | ||
296 | + if (window._yas && window._yas.sendCustomInfo) { | ||
297 | + window._yas.sendCustomInfo({ | ||
298 | + param: JSON.stringify({ | ||
299 | + unionCookie: res.unionCookie | ||
300 | + }) | ||
301 | + }, true); | ||
302 | + } | ||
303 | + } | ||
304 | + | ||
293 | if (res.code === 200) { | 305 | if (res.code === 200) { |
294 | if (payType === 2) { | 306 | if (payType === 2) { |
295 | 307 | ||
@@ -299,7 +311,7 @@ function submitOrder() { | @@ -299,7 +311,7 @@ function submitOrder() { | ||
299 | url = '/home/orders/pay?order_code=' + res.data.order_code; | 311 | url = '/home/orders/pay?order_code=' + res.data.order_code; |
300 | } | 312 | } |
301 | window.setCookie('order-info', ''); | 313 | window.setCookie('order-info', ''); |
302 | - window.location.href = url; | 314 | + // window.location.href = url; |
303 | } else if (res.message) { | 315 | } else if (res.message) { |
304 | tip.show(res.message); | 316 | tip.show(res.message); |
305 | } | 317 | } |
@@ -639,6 +639,7 @@ class IndexController extends AbstractAction | @@ -639,6 +639,7 @@ class IndexController extends AbstractAction | ||
639 | /* 判断是否是友盟过来的用户 */ | 639 | /* 判断是否是友盟过来的用户 */ |
640 | $userAgent = null; | 640 | $userAgent = null; |
641 | $unionKey = ''; | 641 | $unionKey = ''; |
642 | + $unionInfo = array(); | ||
642 | if (!empty($_COOKIE['mkt_code']) || !empty($_COOKIE['_QYH_UNION'])) { | 643 | if (!empty($_COOKIE['mkt_code']) || !empty($_COOKIE['_QYH_UNION'])) { |
643 | 644 | ||
644 | /* tar modified 161108 添加新的联盟数据处理逻辑,兼容原有联盟数据处理, | 645 | /* tar modified 161108 添加新的联盟数据处理逻辑,兼容原有联盟数据处理, |
@@ -663,6 +664,10 @@ class IndexController extends AbstractAction | @@ -663,6 +664,10 @@ class IndexController extends AbstractAction | ||
663 | } | 664 | } |
664 | $result = CartModel::orderSub($uid, $addressId, $cartType, $deliveryTime, $deliveryWay, $invoices, $paymentId, $paymentType, $remark, $couponCode, $yohoCoin, $skuList, $unionKey, $userAgent); | 665 | $result = CartModel::orderSub($uid, $addressId, $cartType, $deliveryTime, $deliveryWay, $invoices, $paymentId, $paymentType, $remark, $couponCode, $yohoCoin, $skuList, $unionKey, $userAgent); |
665 | 666 | ||
667 | + if ($unionInfo && !empty($unionInfo['unionCookie'])) { | ||
668 | + $result['unionCookie'] = $unionInfo['unionCookie']; | ||
669 | + } | ||
670 | + | ||
666 | // 记录下单异常的数据 | 671 | // 记录下单异常的数据 |
667 | if (empty($result)) { | 672 | if (empty($result)) { |
668 | $message = 'uid:' . $uid . ',addressId:' . $addressId . ',cartType:' . $cartType . ',deliveryTime:' . $deliveryTime | 673 | $message = 'uid:' . $uid . ',addressId:' . $addressId . ',cartType:' . $cartType . ',deliveryTime:' . $deliveryTime |
-
Please register or login to post a comment