Skip to content

Commit 9499533

Browse files
com-xubocom-xubo
authored andcommitted
把event_duration单位改成秒
1 parent 4a3b2b7 commit 9499533

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

sensorsdata.amd.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sensorsdata.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sdk.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3297,7 +3297,7 @@ saEvent.send = function(p, callback) {
32973297
para.$url = location.href;
32983298
para.$title = document.title;
32993299
para.$url_path = location.pathname;
3300-
para.event_duration = parseInt(delay_time);
3300+
para.event_duration = parseInt(delay_time)/1000;
33013301
sd.track('$WebStay',para);
33023302
}
33033303
this.current_time = current_time;

src/sensorsdata.full.amd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ var ObjProto = Object.prototype;
153153
var slice = ArrayProto.slice;
154154
var toString = ObjProto.toString;
155155
var hasOwnProperty = ObjProto.hasOwnProperty;
156-
var LIB_VERSION = '1.10.4';
156+
var LIB_VERSION = '1.10.5';
157157

158158
sd.lib_version = LIB_VERSION;
159159

@@ -3440,7 +3440,7 @@ saEvent.send = function(p, callback) {
34403440
para.$url = location.href;
34413441
para.$title = document.title;
34423442
para.$url_path = location.pathname;
3443-
para.event_duration = parseInt(delay_time);
3443+
para.event_duration = parseInt(delay_time)/1000;
34443444
sd.track('$WebStay',para);
34453445
}
34463446
this.current_time = current_time;

src/sensorsdata.full.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ var ObjProto = Object.prototype;
150150
var slice = ArrayProto.slice;
151151
var toString = ObjProto.toString;
152152
var hasOwnProperty = ObjProto.hasOwnProperty;
153-
var LIB_VERSION = '1.10.4';
153+
var LIB_VERSION = '1.10.5';
154154

155155
sd.lib_version = LIB_VERSION;
156156

@@ -3437,7 +3437,7 @@ saEvent.send = function(p, callback) {
34373437
para.$url = location.href;
34383438
para.$title = document.title;
34393439
para.$url_path = location.pathname;
3440-
para.event_duration = parseInt(delay_time);
3440+
para.event_duration = parseInt(delay_time)/1000;
34413441
sd.track('$WebStay',para);
34423442
}
34433443
this.current_time = current_time;

version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
var sensorsdata_js_sdk_latest_version = '1.10.4';
1+
var sensorsdata_js_sdk_latest_version = '1.10.5';

0 commit comments

Comments
 (0)