Authored by 梁志锋

yas HTTPS的处理

@@ -99,7 +99,7 @@ function getShoppingKey() { @@ -99,7 +99,7 @@ function getShoppingKey() {
99 a.async = 1; 99 a.async = 1;
100 a.src = j; 100 a.src = j;
101 m.parentNode.insertBefore(a, m); 101 m.parentNode.insertBefore(a, m);
102 -})(window, document, 'script', '//cdn.yoho.cn/yas-jssdk/1.0.14/yas.js', '_yas'); 102 +})(window, document, 'script', ('https:' == document.location.protocol ? 'https' : 'http') + '://' + 'cdn.yoho.cn/yas-jssdk/1.0.17/yas.js', '_yas');
103 103
104 (function() { 104 (function() {
105 var uid = getUid(); 105 var uid = getUid();
@@ -109,7 +109,7 @@ function getShoppingKey() { @@ -109,7 +109,7 @@ function getShoppingKey() {
109 window._ozuid = uid; //暴露ozuid 109 window._ozuid = uid; //暴露ozuid
110 110
111 if (window._yas) { 111 if (window._yas) {
112 - window._yas(1 * new Date(), '1.0.14', 'yohobuy_web', uid, '', ''); 112 + window._yas(1 * new Date(), '1.0.17', 'yohobuy_web', uid, '', '');
113 } 113 }
114 }()); 114 }());
115 115