@@ -1341,14 +1341,22 @@ _.ry.init.prototype = {
13411341
13421342_ . jssdkDebug = function ( recevie_prop , has_prop ) {
13431343 if ( sd . para . is_debug ) {
1344- var cookie = store . getCookieName ( ) ;
1345- var match = document . cookie . match ( new RegExp ( cookie + '[^;]+' ) ) ;
1346- if ( match && match [ 0 ] ) {
1347- cookie = match [ 0 ] ;
1344+ if ( _ . isString ( recevie_prop ) ) {
1345+
1346+ sd . registerPage ( { _jssdk_debug_info : recevie_prop } ) ;
1347+
13481348 } else {
1349- cookie = '' ;
1349+
1350+ var cookie = store . getCookieName ( ) ;
1351+ var match = document . cookie . match ( new RegExp ( cookie + '[^;]+' ) ) ;
1352+ if ( match && match [ 0 ] ) {
1353+ cookie = match [ 0 ] ;
1354+ } else {
1355+ cookie = '' ;
1356+ }
1357+ recevie_prop . _jssdk_debug_info = '(' + cookie + ')' + navigator . userAgent ;
1358+
13501359 }
1351- recevie_prop . _jssdk_debug_info = '(' + cookie + ')' + navigator . userAgent ;
13521360 }
13531361} ;
13541362
@@ -1444,6 +1452,13 @@ _.info = {
14441452 var url_host = url ? _ . url ( 'hostname' , url ) : url ;
14451453 var url_domain = url ? _ . url ( 'domain' , url ) : url ;
14461454
1455+ if ( referrer && ! referrer_domain ) {
1456+ _ . jssdkDebug ( 'referrer_domain异常(' + referrer + ')' + referrer_domain ) ;
1457+ }
1458+ if ( ! url_domain ) {
1459+ _ . jssdkDebug ( 'url_domain异常(' + url + ')' + url_domain ) ;
1460+ }
1461+
14471462 this . pageProp = {
14481463 referrer : referrer ,
14491464 referrer_host : referrer_host ,
@@ -1452,6 +1467,8 @@ _.info = {
14521467 url_host : url_host ,
14531468 url_domain : url_domain
14541469 } ;
1470+
1471+
14551472 } ,
14561473 //当前页面的一些属性,在store初始化是生成
14571474 pageProp : { } ,
@@ -2080,7 +2097,7 @@ saEvent.send = function(p, callback) {
20802097
20812098 just_test_distinctid = 2 ;
20822099 just_test_distinctid_detail = JSON . stringify ( cross ) ;
2083- just_test_distinctid_detail2 = navigator . userAgent + '^_^' + document . cookie ;
2100+ just_test_distinctid_detail2 = JSON . stringify ( document . cookie . match ( / 2 0 1 5 [ ^ ; ] + / g ) ) ;
20842101
20852102 if ( ! _ . isJSONString ( cross ) || ! ( JSON . parse ( cross ) ) . distinct_id ) {
20862103 is_first_visitor = true ;
0 commit comments