Skip to content

Commit 323246b

Browse files
author
shengyonggen
committed
Release 1.17.7
1 parent ec0462c commit 323246b

14 files changed

+17
-193
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.17.7(2022-4-29)
2+
1. 修复
3+
- 删除获取经纬度的功能,修复微信小程序发布代码审核不通过的问题
4+
15
## 1.17.6(2022-4-15)
26
1. 新增
37
- 新增登录接口 `loginWithKey`,去除 `LOGIN_ID_KEY` 配置

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sa-sdk-miniprogram",
3-
"version": "1.17.6",
3+
"version": "1.17.7",
44
"description": "sensorsdata miniprogram sdk",
55
"main": "sensorsdata.min.js",
66
"scripts": {

product/sensorsdata.custom.es6.full.js

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -878,7 +878,7 @@ sa.getServerUrl = function() {
878878
return sa.para.server_url;
879879
};
880880

881-
var LIB_VERSION = '1.17.6',
881+
var LIB_VERSION = '1.17.7',
882882
LIB_NAME = 'MiniProgram';
883883

884884
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
@@ -2655,30 +2655,6 @@ sa.logout = function(isChangeId) {
26552655
}
26562656
};
26572657

2658-
sa.getLocation = function() {
2659-
wx.getSetting({
2660-
success: function(res) {
2661-
if (res.authSetting['scope.userLocation']) {
2662-
wx.getLocation({
2663-
type: sa.para.preset_properties.location.type,
2664-
success: function(res) {
2665-
sa.registerApp({
2666-
$latitude: res.latitude * Math.pow(10, 6),
2667-
$longitude: res.longitude * Math.pow(10, 6),
2668-
$geo_coordinate_system: _.setUpperCase(sa.para.preset_properties.location.type)
2669-
});
2670-
},
2671-
fail: function(err) {
2672-
logger.info('获取位置失败', err);
2673-
}
2674-
});
2675-
} else {
2676-
return false;
2677-
}
2678-
}
2679-
});
2680-
};
2681-
26822658
sa.openid = {
26832659
getRequest: function(callback) {
26842660
wx.login({
@@ -3193,9 +3169,6 @@ sa.autoTrackCustom = {
31933169
prop.$url_path = _.getPath(para.path);
31943170
prop.$title = _.getPageTitle(para.path);
31953171
}
3196-
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
3197-
sa.getLocation();
3198-
}
31993172
_.setShareInfo(para, prop);
32003173

32013174
var utms = _.setUtm(para, prop);
@@ -3439,9 +3412,6 @@ sa.appShow = function(option, prop) {
34393412
obj.$url_path = _.getPath(option.path);
34403413
obj.$title = _.getPageTitle(option.path);
34413414
}
3442-
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
3443-
sa.getLocation();
3444-
}
34453415
_.setShareInfo(option, obj);
34463416
var utms = _.setUtm(option, obj);
34473417
_.setLatestChannel(utms.pre2);

product/sensorsdata.custom.full.js

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ sa.getServerUrl = function() {
881881
return sa.para.server_url;
882882
};
883883

884-
var LIB_VERSION = '1.17.6',
884+
var LIB_VERSION = '1.17.7',
885885
LIB_NAME = 'MiniProgram';
886886

887887
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
@@ -2658,30 +2658,6 @@ sa.logout = function(isChangeId) {
26582658
}
26592659
};
26602660

2661-
sa.getLocation = function() {
2662-
wx.getSetting({
2663-
success: function(res) {
2664-
if (res.authSetting['scope.userLocation']) {
2665-
wx.getLocation({
2666-
type: sa.para.preset_properties.location.type,
2667-
success: function(res) {
2668-
sa.registerApp({
2669-
$latitude: res.latitude * Math.pow(10, 6),
2670-
$longitude: res.longitude * Math.pow(10, 6),
2671-
$geo_coordinate_system: _.setUpperCase(sa.para.preset_properties.location.type)
2672-
});
2673-
},
2674-
fail: function(err) {
2675-
logger.info('获取位置失败', err);
2676-
}
2677-
});
2678-
} else {
2679-
return false;
2680-
}
2681-
}
2682-
});
2683-
};
2684-
26852661
sa.openid = {
26862662
getRequest: function(callback) {
26872663
wx.login({
@@ -3196,9 +3172,6 @@ sa.autoTrackCustom = {
31963172
prop.$url_path = _.getPath(para.path);
31973173
prop.$title = _.getPageTitle(para.path);
31983174
}
3199-
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
3200-
sa.getLocation();
3201-
}
32023175
_.setShareInfo(para, prop);
32033176

32043177
var utms = _.setUtm(para, prop);
@@ -3442,9 +3415,6 @@ sa.appShow = function(option, prop) {
34423415
obj.$url_path = _.getPath(option.path);
34433416
obj.$title = _.getPageTitle(option.path);
34443417
}
3445-
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
3446-
sa.getLocation();
3447-
}
34483418
_.setShareInfo(option, obj);
34493419
var utms = _.setUtm(option, obj);
34503420
_.setLatestChannel(utms.pre2);

product/sensorsdata.es6.full.js

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ sa.getServerUrl = function() {
10901090
return sa.para.server_url;
10911091
};
10921092

1093-
var LIB_VERSION = '1.17.6',
1093+
var LIB_VERSION = '1.17.7',
10941094
LIB_NAME = 'MiniProgram';
10951095

10961096
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
@@ -2867,30 +2867,6 @@ sa.logout = function(isChangeId) {
28672867
}
28682868
};
28692869

2870-
sa.getLocation = function() {
2871-
wx.getSetting({
2872-
success: function(res) {
2873-
if (res.authSetting['scope.userLocation']) {
2874-
wx.getLocation({
2875-
type: sa.para.preset_properties.location.type,
2876-
success: function(res) {
2877-
sa.registerApp({
2878-
$latitude: res.latitude * Math.pow(10, 6),
2879-
$longitude: res.longitude * Math.pow(10, 6),
2880-
$geo_coordinate_system: _.setUpperCase(sa.para.preset_properties.location.type)
2881-
});
2882-
},
2883-
fail: function(err) {
2884-
logger.info('获取位置失败', err);
2885-
}
2886-
});
2887-
} else {
2888-
return false;
2889-
}
2890-
}
2891-
});
2892-
};
2893-
28942870
sa.openid = {
28952871
getRequest: function(callback) {
28962872
wx.login({
@@ -3405,9 +3381,6 @@ sa.autoTrackCustom = {
34053381
prop.$url_path = _.getPath(para.path);
34063382
prop.$title = _.getPageTitle(para.path);
34073383
}
3408-
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
3409-
sa.getLocation();
3410-
}
34113384
_.setShareInfo(para, prop);
34123385

34133386
var utms = _.setUtm(para, prop);
@@ -3651,9 +3624,6 @@ sa.appShow = function(option, prop) {
36513624
obj.$url_path = _.getPath(option.path);
36523625
obj.$title = _.getPageTitle(option.path);
36533626
}
3654-
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
3655-
sa.getLocation();
3656-
}
36573627
_.setShareInfo(option, obj);
36583628
var utms = _.setUtm(option, obj);
36593629
_.setLatestChannel(utms.pre2);

product/sensorsdata.full.js

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ sa.getServerUrl = function() {
10931093
return sa.para.server_url;
10941094
};
10951095

1096-
var LIB_VERSION = '1.17.6',
1096+
var LIB_VERSION = '1.17.7',
10971097
LIB_NAME = 'MiniProgram';
10981098

10991099
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
@@ -2870,30 +2870,6 @@ sa.logout = function(isChangeId) {
28702870
}
28712871
};
28722872

2873-
sa.getLocation = function() {
2874-
wx.getSetting({
2875-
success: function(res) {
2876-
if (res.authSetting['scope.userLocation']) {
2877-
wx.getLocation({
2878-
type: sa.para.preset_properties.location.type,
2879-
success: function(res) {
2880-
sa.registerApp({
2881-
$latitude: res.latitude * Math.pow(10, 6),
2882-
$longitude: res.longitude * Math.pow(10, 6),
2883-
$geo_coordinate_system: _.setUpperCase(sa.para.preset_properties.location.type)
2884-
});
2885-
},
2886-
fail: function(err) {
2887-
logger.info('获取位置失败', err);
2888-
}
2889-
});
2890-
} else {
2891-
return false;
2892-
}
2893-
}
2894-
});
2895-
};
2896-
28972873
sa.openid = {
28982874
getRequest: function(callback) {
28992875
wx.login({
@@ -3408,9 +3384,6 @@ sa.autoTrackCustom = {
34083384
prop.$url_path = _.getPath(para.path);
34093385
prop.$title = _.getPageTitle(para.path);
34103386
}
3411-
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
3412-
sa.getLocation();
3413-
}
34143387
_.setShareInfo(para, prop);
34153388

34163389
var utms = _.setUtm(para, prop);
@@ -3654,9 +3627,6 @@ sa.appShow = function(option, prop) {
36543627
obj.$url_path = _.getPath(option.path);
36553628
obj.$title = _.getPageTitle(option.path);
36563629
}
3657-
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
3658-
sa.getLocation();
3659-
}
36603630
_.setShareInfo(option, obj);
36613631
var utms = _.setUtm(option, obj);
36623632
_.setLatestChannel(utms.pre2);

product/sensorsdata.plugin.es6.full.js

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,7 +1087,7 @@ sa.getServerUrl = function() {
10871087
return sa.para.server_url;
10881088
};
10891089

1090-
var LIB_VERSION = '1.17.6',
1090+
var LIB_VERSION = '1.17.7',
10911091
LIB_NAME = 'MiniProgram';
10921092

10931093
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
@@ -2864,30 +2864,6 @@ sa.logout = function(isChangeId) {
28642864
}
28652865
};
28662866

2867-
sa.getLocation = function() {
2868-
wx.getSetting({
2869-
success: function(res) {
2870-
if (res.authSetting['scope.userLocation']) {
2871-
wx.getLocation({
2872-
type: sa.para.preset_properties.location.type,
2873-
success: function(res) {
2874-
sa.registerApp({
2875-
$latitude: res.latitude * Math.pow(10, 6),
2876-
$longitude: res.longitude * Math.pow(10, 6),
2877-
$geo_coordinate_system: _.setUpperCase(sa.para.preset_properties.location.type)
2878-
});
2879-
},
2880-
fail: function(err) {
2881-
logger.info('获取位置失败', err);
2882-
}
2883-
});
2884-
} else {
2885-
return false;
2886-
}
2887-
}
2888-
});
2889-
};
2890-
28912867
sa.openid = {
28922868
getRequest: function(callback) {
28932869
wx.login({
@@ -3402,9 +3378,6 @@ sa.autoTrackCustom = {
34023378
prop.$url_path = _.getPath(para.path);
34033379
prop.$title = _.getPageTitle(para.path);
34043380
}
3405-
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
3406-
sa.getLocation();
3407-
}
34083381
_.setShareInfo(para, prop);
34093382

34103383
var utms = _.setUtm(para, prop);
@@ -3648,9 +3621,6 @@ sa.appShow = function(option, prop) {
36483621
obj.$url_path = _.getPath(option.path);
36493622
obj.$title = _.getPageTitle(option.path);
36503623
}
3651-
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
3652-
sa.getLocation();
3653-
}
36543624
_.setShareInfo(option, obj);
36553625
var utms = _.setUtm(option, obj);
36563626
_.setLatestChannel(utms.pre2);

product/sensorsdata.plugin.full.js

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1090,7 +1090,7 @@ sa.getServerUrl = function() {
10901090
return sa.para.server_url;
10911091
};
10921092

1093-
var LIB_VERSION = '1.17.6',
1093+
var LIB_VERSION = '1.17.7',
10941094
LIB_NAME = 'MiniProgram';
10951095

10961096
var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
@@ -2867,30 +2867,6 @@ sa.logout = function(isChangeId) {
28672867
}
28682868
};
28692869

2870-
sa.getLocation = function() {
2871-
wx.getSetting({
2872-
success: function(res) {
2873-
if (res.authSetting['scope.userLocation']) {
2874-
wx.getLocation({
2875-
type: sa.para.preset_properties.location.type,
2876-
success: function(res) {
2877-
sa.registerApp({
2878-
$latitude: res.latitude * Math.pow(10, 6),
2879-
$longitude: res.longitude * Math.pow(10, 6),
2880-
$geo_coordinate_system: _.setUpperCase(sa.para.preset_properties.location.type)
2881-
});
2882-
},
2883-
fail: function(err) {
2884-
logger.info('获取位置失败', err);
2885-
}
2886-
});
2887-
} else {
2888-
return false;
2889-
}
2890-
}
2891-
});
2892-
};
2893-
28942870
sa.openid = {
28952871
getRequest: function(callback) {
28962872
wx.login({
@@ -3405,9 +3381,6 @@ sa.autoTrackCustom = {
34053381
prop.$url_path = _.getPath(para.path);
34063382
prop.$title = _.getPageTitle(para.path);
34073383
}
3408-
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
3409-
sa.getLocation();
3410-
}
34113384
_.setShareInfo(para, prop);
34123385

34133386
var utms = _.setUtm(para, prop);
@@ -3651,9 +3624,6 @@ sa.appShow = function(option, prop) {
36513624
obj.$url_path = _.getPath(option.path);
36523625
obj.$title = _.getPageTitle(option.path);
36533626
}
3654-
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
3655-
sa.getLocation();
3656-
}
36573627
_.setShareInfo(option, obj);
36583628
var utms = _.setUtm(option, obj);
36593629
_.setLatestChannel(utms.pre2);

sensorsdata.custom.es6.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sensorsdata.custom.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)