Skip to content

Commit

Permalink
回退
Browse files Browse the repository at this point in the history
  • Loading branch information
shengyonggen committed Jul 7, 2018
1 parent 199e075 commit bd8a6a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions sensorsdata.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var ArrayProto = Array.prototype,
slice = ArrayProto.slice,
toString = ObjProto.toString,
hasOwnProperty = ObjProto.hasOwnProperty,
LIB_VERSION = '1.6',
LIB_VERSION = '1.7',
LIB_NAME = 'MiniProgram';

var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
Expand Down Expand Up @@ -683,8 +683,8 @@ _.setUtm = function(para,prop){
}
_.extend(query, _.getObjFromQuery(scene));
}
if (para.query.q) {
_.extend(query, _.getObjFromQuery(para.query.q));
if (para.query.q) {
_.extend(query, _.getObjFromQuery(_.decodeURIComponent(para.query.q)));
}
}
if (para && _.isObject(para.referrerInfo) && para.referrerInfo.extraData) {
Expand Down Expand Up @@ -1223,7 +1223,7 @@ function appShow(para) {
if (para && para.path) {
prop.$url_path = para.path;
}

var utms = _.setUtm(para, prop);

if (!_.isEmptyObject(utms.pre2)) {
Expand Down Expand Up @@ -1308,7 +1308,7 @@ Page = function (t) {
if (para && _.isObject(para)) {
var query = _.extend({}, para);
if (para.q) {
_.extend(query, _.getObjFromQuery(para.q));
_.extend(query, _.getObjFromQuery(_.decodeURIComponent(para.q)));
}
var utms = _.getUtm(query, '$', '$latest_');
this.sensors_mp_load_utm = utms.pre1;
Expand Down
Loading

0 comments on commit bd8a6a7

Please sign in to comment.