Authored by 沈志敏

如果cookies里面mkt_code不存在,就直接使用url里的union_type设置到mtkc里面

{
"name": "yas-jssdk",
"version": "2.3.3",
"version": "2.3.4",
"description": "YOHO!采集系统的前端js的开发包",
"keywords": [
"YOHO!",
... ...
... ... @@ -351,7 +351,7 @@ function setMktc() {
if (isWechat) {
// 微信中,不管是否已经种入cookie,直接覆盖
cookies('mkt_code', mktc, options);
} else if (!cookies('mkt_code')){
} else if (!cookies('mkt_code') || mktc === '100000000000349'){
// 如果没有种入mtk_code则种入
cookies('mkt_code', mktc, options);
}
... ... @@ -359,7 +359,7 @@ function setMktc() {
}
function getMktc() {
var mktc = cookies('mkt_code');
var mktc = cookies('mkt_code') || window.qs.mkt_code || window.qs.union_type || window.qs.code; // window.qs.code 兼容老url
if (mktc) {
return {
mktc: mktc
... ...