Authored by 郝肖肖

yas 2.1.0

@@ -231,7 +231,7 @@ function reMarginFooter(fixedElement) { @@ -231,7 +231,7 @@ function reMarginFooter(fixedElement) {
231 a.src = j; 231 a.src = j;
232 m.parentNode.insertBefore(a, m); 232 m.parentNode.insertBefore(a, m);
233 })(window, document, 'script', ('https:' === document.location.protocol ? 'https' : 'http') + '://' + 233 })(window, document, 'script', ('https:' === document.location.protocol ? 'https' : 'http') + '://' +
234 - 'cdn.yoho.cn/yas-jssdk/1.0.18/yas.js', '_yas'); 234 + 'cdn.yoho.cn/yas-jssdk/2.1.0/yas.js', '_yas');
235 235
236 (function() { 236 (function() {
237 var uid = getUid(), 237 var uid = getUid(),
@@ -245,7 +245,7 @@ function reMarginFooter(fixedElement) { @@ -245,7 +245,7 @@ function reMarginFooter(fixedElement) {
245 window._ozuid = uid; // 暴露ozuid 245 window._ozuid = uid; // 暴露ozuid
246 246
247 if (window._yas) { 247 if (window._yas) {
248 - window._yas(1 * new Date(), '1.0.18', 'yohobuy_m', uid, '', ''); 248 + window._yas(1 * new Date(), '2.1.0', 'yohobuy_m', uid, '', '');
249 249
250 // 发送埋点数据 250 // 发送埋点数据
251 sendBpData = function(bpIdArr) { 251 sendBpData = function(bpIdArr) {
@@ -682,7 +682,7 @@ class IndexController extends AbstractAction @@ -682,7 +682,7 @@ class IndexController extends AbstractAction
682 if (!empty($_COOKIE['mkt_code'])) { 682 if (!empty($_COOKIE['mkt_code'])) {
683 $unionKey = '{"client_id":' . (strlen($_COOKIE['mkt_code']) >= 15 '' : '800') . $_COOKIE['mkt_code'] . '}'; 683 $unionKey = '{"client_id":' . (strlen($_COOKIE['mkt_code']) >= 15 '' : '800') . $_COOKIE['mkt_code'] . '}';
684 } else { 684 } else {
685 - $encryData = trim(Encryption::decrypt($_COOKIE['_QYH_UNION'])); 685 + $encryData = trim(Encryption::decrypt(urldecode($_COOKIE['_QYH_UNION'])));
686 $extraIndex = strrpos($encryData, '}') + 1; 686 $extraIndex = strrpos($encryData, '}') + 1;
687 $encryObject = substr($encryData, 0, $extraIndex); 687 $encryObject = substr($encryData, 0, $extraIndex);
688 $testQyhUnion = json_decode($encryObject, true); 688 $testQyhUnion = json_decode($encryObject, true);
@@ -719,7 +719,6 @@ class IndexController extends AbstractAction @@ -719,7 +719,6 @@ class IndexController extends AbstractAction
719 $message = 'uid:' . $uid . ',addressId:' . $addressId . ',cartType:' . $cartType . ',deliveryTime:' . $deliveryTime 719 $message = 'uid:' . $uid . ',addressId:' . $addressId . ',cartType:' . $cartType . ',deliveryTime:' . $deliveryTime
720 . ',deliveryWay:' . $deliveryWay . ',yohoCoin:' . $yohoCoin 720 . ',deliveryWay:' . $deliveryWay . ',yohoCoin:' . $yohoCoin
721 . ',paymentId:' . $paymentId . ',paymentType:' . $paymentType . ',remark:' . $remark . ',couponCode:' . $couponCode . "\n"; 721 . ',paymentId:' . $paymentId . ',paymentType:' . $paymentType . ',remark:' . $remark . ',couponCode:' . $couponCode . "\n";
722 - error_log($message, 3, '/Data/logs/php/h5_error/order.' . date('Ym') . '.log');  
723 UdpLog::info('【下单】下单异常数据', 'message:' . $message, '返回:' . json_encode($result)); 722 UdpLog::info('【下单】下单异常数据', 'message:' . $message, '返回:' . json_encode($result));
724 } else { 723 } else {
725 // 返回数据 724 // 返回数据