Authored by 郭成尧

union-cookie-error

... ... @@ -344,7 +344,7 @@ function submitOrder(times) {
ORDER_CODE: res.data.order_code,
PRD_NUM: $('#goods-num').val(),
ORDER_AMOUNT: res.data.order_amount,
UNIONCOOKIE: res.data.unionCookie || '',
UNIONCOOKIE: encodeURIComponent(res.data.unionCookie + '') || '',
PRD_SKN: PRD_SKN.join(','),
PRD_SKU: PRD_SKU.join(',')
})
... ...
... ... @@ -681,7 +681,9 @@ class IndexController extends AbstractAction
$result = CartModel::orderSub($uid, $addressId, $cartType, $deliveryTime, $deliveryWay, $invoices, $paymentId, $paymentType, $remark, $couponCode, $yohoCoin, $skuList, $unionKey, $userAgent, $times);
if (!empty($unionInfo)) {
$result['data']['unionCookie'] = $unionInfo;
$before = array(" "," ","\t","\n","\r");
$after = array("","","","","");
$result['data']['unionCookie'] = str_replace($before, $after, json_encode($unionInfo));
}
// 记录下单异常的数据
... ...