Authored by 郝肖肖

yas 2.1.0

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