@@ -26,7 +26,7 @@ var ArrayProto = Array.prototype,
2626 slice = ArrayProto . slice ,
2727 toString = ObjProto . toString ,
2828 hasOwnProperty = ObjProto . hasOwnProperty ,
29- LIB_VERSION = '1.9.7 ' ,
29+ LIB_VERSION = '1.9.8 ' ,
3030 LIB_NAME = 'MiniProgram' ;
3131
3232var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term' ;
@@ -1121,10 +1121,11 @@ sa.init = function () {
11211121} ;
11221122
11231123sa . getPresetProperties = function ( ) {
1124- if ( _ . info && _ . info . properties && _ . info . properties . $lib && _ . info . properties . $user_agent ) {
1125- delete _ . info . properties . $lib ;
1126- delete _ . info . properties . $user_agent ;
1127- return _ . extend ( { $url_path : _ . getCurrentPath ( ) } , _ . info . properties , sa . store . getProps ( ) ) ;
1124+ if ( _ . info && _ . info . properties && _ . info . properties . $lib && _ . info . properties . $user_agent ) {
1125+ var obj = _ . extend ( { $url_path : _ . getCurrentPath ( ) } , _ . info . properties , sa . store . getProps ( ) ) ;
1126+ delete obj . $lib ;
1127+ delete obj . $user_agent ;
1128+ return obj ;
11281129 } else {
11291130 return { } ;
11301131 }
@@ -1300,10 +1301,11 @@ if(sa.para.autoTrack !== false){
13001301 if ( ! _ . isEmptyObject ( utms . pre2 ) ) {
13011302 sa . registerApp ( utms . pre2 ) ;
13021303 }
1304+
1305+ para . scene = para . scene || '未取到值' ;
13031306 prop . $scene = _ . getMPScene ( para . scene ) ;
13041307 sa . registerApp ( { $latest_scene : prop . $scene } ) ;
1305-
1306-
1308+
13071309 if ( sa . para . autoTrack && sa . para . autoTrack . appLaunch ) {
13081310 sa . autoTrackCustom ( 'appLaunch' , prop , '$MPLaunch' ) ;
13091311 }
@@ -1328,8 +1330,8 @@ if(sa.para.autoTrack !== false){
13281330 sa . registerApp ( utms . pre2 ) ;
13291331 }
13301332
1333+ para . scene = para . scene || '未取到值' ;
13311334 prop . $scene = _ . getMPScene ( para . scene ) ;
1332-
13331335 sa . registerApp ( { $latest_scene : prop . $scene } ) ;
13341336
13351337 if ( sa . para . autoTrack && sa . para . autoTrack . appShow ) {
0 commit comments