Authored by 毕凯

YAS 上报接口 当前的 sessionID

{
"name": "yas-jssdk",
"version": "2.4.6",
"version": "2.4.7",
"description": "YOHO!采集系统的前端js的开发包",
"keywords": [
"YOHO!",
... ...
... ... @@ -288,3 +288,10 @@ exports.getAppPath = function() {
appPath = (appPath || '').replace('yohobuy://yohobuy.com/goapp?','') || 'openby:yohobuy={"action":"go.home","params":{"gender":"1","channel":"2"}}';
return appPath;
}
exports.getSid = function() {
// YAS 上报接口 当前的 sessionID
var sessionID = (cookie('yohobuy_session') || '').slice(2).split('.')[0];
return sessionID || 0;
}
... ...
... ... @@ -42,7 +42,8 @@ var appInfo = {
sv: '', // YAS版本
ab: cookies('ab_5') || '',
op: 'YB_PAGE_OPEN_L',
apf: window.location.search.indexOf('app_version=') >= 0 ? 'Y' : 'N'
apf: window.location.search.indexOf('app_version=') >= 0 ? 'Y' : 'N',
ssid: util.getSid() // YAS 上报接口 当前的 sessionID
};
var isApp = /yohobuy/i.test(navigator.userAgent) || /app_version=/i.test(window.location.search) || !!window.yohoInterface;
... ...