Skip to content

Commit

Permalink
Release 1.17.7
Browse files Browse the repository at this point in the history
  • Loading branch information
shengyonggen committed Apr 29, 2022
1 parent ec0462c commit 323246b
Show file tree
Hide file tree
Showing 14 changed files with 17 additions and 193 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.17.7(2022-4-29)
1. 修复
- 删除获取经纬度的功能,修复微信小程序发布代码审核不通过的问题

## 1.17.6(2022-4-15)
1. 新增
- 新增登录接口 `loginWithKey`,去除 `LOGIN_ID_KEY` 配置
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sa-sdk-miniprogram",
"version": "1.17.6",
"version": "1.17.7",
"description": "sensorsdata miniprogram sdk",
"main": "sensorsdata.min.js",
"scripts": {
Expand Down
32 changes: 1 addition & 31 deletions product/sensorsdata.custom.es6.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -878,7 +878,7 @@ sa.getServerUrl = function() {
return sa.para.server_url;
};

var LIB_VERSION = '1.17.6',
var LIB_VERSION = '1.17.7',
LIB_NAME = 'MiniProgram';

var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
Expand Down Expand Up @@ -2655,30 +2655,6 @@ sa.logout = function(isChangeId) {
}
};

sa.getLocation = function() {
wx.getSetting({
success: function(res) {
if (res.authSetting['scope.userLocation']) {
wx.getLocation({
type: sa.para.preset_properties.location.type,
success: function(res) {
sa.registerApp({
$latitude: res.latitude * Math.pow(10, 6),
$longitude: res.longitude * Math.pow(10, 6),
$geo_coordinate_system: _.setUpperCase(sa.para.preset_properties.location.type)
});
},
fail: function(err) {
logger.info('获取位置失败', err);
}
});
} else {
return false;
}
}
});
};

sa.openid = {
getRequest: function(callback) {
wx.login({
Expand Down Expand Up @@ -3193,9 +3169,6 @@ sa.autoTrackCustom = {
prop.$url_path = _.getPath(para.path);
prop.$title = _.getPageTitle(para.path);
}
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
sa.getLocation();
}
_.setShareInfo(para, prop);

var utms = _.setUtm(para, prop);
Expand Down Expand Up @@ -3439,9 +3412,6 @@ sa.appShow = function(option, prop) {
obj.$url_path = _.getPath(option.path);
obj.$title = _.getPageTitle(option.path);
}
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
sa.getLocation();
}
_.setShareInfo(option, obj);
var utms = _.setUtm(option, obj);
_.setLatestChannel(utms.pre2);
Expand Down
32 changes: 1 addition & 31 deletions product/sensorsdata.custom.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ sa.getServerUrl = function() {
return sa.para.server_url;
};

var LIB_VERSION = '1.17.6',
var LIB_VERSION = '1.17.7',
LIB_NAME = 'MiniProgram';

var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
Expand Down Expand Up @@ -2658,30 +2658,6 @@ sa.logout = function(isChangeId) {
}
};

sa.getLocation = function() {
wx.getSetting({
success: function(res) {
if (res.authSetting['scope.userLocation']) {
wx.getLocation({
type: sa.para.preset_properties.location.type,
success: function(res) {
sa.registerApp({
$latitude: res.latitude * Math.pow(10, 6),
$longitude: res.longitude * Math.pow(10, 6),
$geo_coordinate_system: _.setUpperCase(sa.para.preset_properties.location.type)
});
},
fail: function(err) {
logger.info('获取位置失败', err);
}
});
} else {
return false;
}
}
});
};

sa.openid = {
getRequest: function(callback) {
wx.login({
Expand Down Expand Up @@ -3196,9 +3172,6 @@ sa.autoTrackCustom = {
prop.$url_path = _.getPath(para.path);
prop.$title = _.getPageTitle(para.path);
}
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
sa.getLocation();
}
_.setShareInfo(para, prop);

var utms = _.setUtm(para, prop);
Expand Down Expand Up @@ -3442,9 +3415,6 @@ sa.appShow = function(option, prop) {
obj.$url_path = _.getPath(option.path);
obj.$title = _.getPageTitle(option.path);
}
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
sa.getLocation();
}
_.setShareInfo(option, obj);
var utms = _.setUtm(option, obj);
_.setLatestChannel(utms.pre2);
Expand Down
32 changes: 1 addition & 31 deletions product/sensorsdata.es6.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ sa.getServerUrl = function() {
return sa.para.server_url;
};

var LIB_VERSION = '1.17.6',
var LIB_VERSION = '1.17.7',
LIB_NAME = 'MiniProgram';

var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
Expand Down Expand Up @@ -2867,30 +2867,6 @@ sa.logout = function(isChangeId) {
}
};

sa.getLocation = function() {
wx.getSetting({
success: function(res) {
if (res.authSetting['scope.userLocation']) {
wx.getLocation({
type: sa.para.preset_properties.location.type,
success: function(res) {
sa.registerApp({
$latitude: res.latitude * Math.pow(10, 6),
$longitude: res.longitude * Math.pow(10, 6),
$geo_coordinate_system: _.setUpperCase(sa.para.preset_properties.location.type)
});
},
fail: function(err) {
logger.info('获取位置失败', err);
}
});
} else {
return false;
}
}
});
};

sa.openid = {
getRequest: function(callback) {
wx.login({
Expand Down Expand Up @@ -3405,9 +3381,6 @@ sa.autoTrackCustom = {
prop.$url_path = _.getPath(para.path);
prop.$title = _.getPageTitle(para.path);
}
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
sa.getLocation();
}
_.setShareInfo(para, prop);

var utms = _.setUtm(para, prop);
Expand Down Expand Up @@ -3651,9 +3624,6 @@ sa.appShow = function(option, prop) {
obj.$url_path = _.getPath(option.path);
obj.$title = _.getPageTitle(option.path);
}
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
sa.getLocation();
}
_.setShareInfo(option, obj);
var utms = _.setUtm(option, obj);
_.setLatestChannel(utms.pre2);
Expand Down
32 changes: 1 addition & 31 deletions product/sensorsdata.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ sa.getServerUrl = function() {
return sa.para.server_url;
};

var LIB_VERSION = '1.17.6',
var LIB_VERSION = '1.17.7',
LIB_NAME = 'MiniProgram';

var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
Expand Down Expand Up @@ -2870,30 +2870,6 @@ sa.logout = function(isChangeId) {
}
};

sa.getLocation = function() {
wx.getSetting({
success: function(res) {
if (res.authSetting['scope.userLocation']) {
wx.getLocation({
type: sa.para.preset_properties.location.type,
success: function(res) {
sa.registerApp({
$latitude: res.latitude * Math.pow(10, 6),
$longitude: res.longitude * Math.pow(10, 6),
$geo_coordinate_system: _.setUpperCase(sa.para.preset_properties.location.type)
});
},
fail: function(err) {
logger.info('获取位置失败', err);
}
});
} else {
return false;
}
}
});
};

sa.openid = {
getRequest: function(callback) {
wx.login({
Expand Down Expand Up @@ -3408,9 +3384,6 @@ sa.autoTrackCustom = {
prop.$url_path = _.getPath(para.path);
prop.$title = _.getPageTitle(para.path);
}
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
sa.getLocation();
}
_.setShareInfo(para, prop);

var utms = _.setUtm(para, prop);
Expand Down Expand Up @@ -3654,9 +3627,6 @@ sa.appShow = function(option, prop) {
obj.$url_path = _.getPath(option.path);
obj.$title = _.getPageTitle(option.path);
}
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
sa.getLocation();
}
_.setShareInfo(option, obj);
var utms = _.setUtm(option, obj);
_.setLatestChannel(utms.pre2);
Expand Down
32 changes: 1 addition & 31 deletions product/sensorsdata.plugin.es6.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ sa.getServerUrl = function() {
return sa.para.server_url;
};

var LIB_VERSION = '1.17.6',
var LIB_VERSION = '1.17.7',
LIB_NAME = 'MiniProgram';

var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
Expand Down Expand Up @@ -2864,30 +2864,6 @@ sa.logout = function(isChangeId) {
}
};

sa.getLocation = function() {
wx.getSetting({
success: function(res) {
if (res.authSetting['scope.userLocation']) {
wx.getLocation({
type: sa.para.preset_properties.location.type,
success: function(res) {
sa.registerApp({
$latitude: res.latitude * Math.pow(10, 6),
$longitude: res.longitude * Math.pow(10, 6),
$geo_coordinate_system: _.setUpperCase(sa.para.preset_properties.location.type)
});
},
fail: function(err) {
logger.info('获取位置失败', err);
}
});
} else {
return false;
}
}
});
};

sa.openid = {
getRequest: function(callback) {
wx.login({
Expand Down Expand Up @@ -3402,9 +3378,6 @@ sa.autoTrackCustom = {
prop.$url_path = _.getPath(para.path);
prop.$title = _.getPageTitle(para.path);
}
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
sa.getLocation();
}
_.setShareInfo(para, prop);

var utms = _.setUtm(para, prop);
Expand Down Expand Up @@ -3648,9 +3621,6 @@ sa.appShow = function(option, prop) {
obj.$url_path = _.getPath(option.path);
obj.$title = _.getPageTitle(option.path);
}
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
sa.getLocation();
}
_.setShareInfo(option, obj);
var utms = _.setUtm(option, obj);
_.setLatestChannel(utms.pre2);
Expand Down
32 changes: 1 addition & 31 deletions product/sensorsdata.plugin.full.js
Original file line number Diff line number Diff line change
Expand Up @@ -1090,7 +1090,7 @@ sa.getServerUrl = function() {
return sa.para.server_url;
};

var LIB_VERSION = '1.17.6',
var LIB_VERSION = '1.17.7',
LIB_NAME = 'MiniProgram';

var source_channel_standard = 'utm_source utm_medium utm_campaign utm_content utm_term';
Expand Down Expand Up @@ -2867,30 +2867,6 @@ sa.logout = function(isChangeId) {
}
};

sa.getLocation = function() {
wx.getSetting({
success: function(res) {
if (res.authSetting['scope.userLocation']) {
wx.getLocation({
type: sa.para.preset_properties.location.type,
success: function(res) {
sa.registerApp({
$latitude: res.latitude * Math.pow(10, 6),
$longitude: res.longitude * Math.pow(10, 6),
$geo_coordinate_system: _.setUpperCase(sa.para.preset_properties.location.type)
});
},
fail: function(err) {
logger.info('获取位置失败', err);
}
});
} else {
return false;
}
}
});
};

sa.openid = {
getRequest: function(callback) {
wx.login({
Expand Down Expand Up @@ -3405,9 +3381,6 @@ sa.autoTrackCustom = {
prop.$url_path = _.getPath(para.path);
prop.$title = _.getPageTitle(para.path);
}
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
sa.getLocation();
}
_.setShareInfo(para, prop);

var utms = _.setUtm(para, prop);
Expand Down Expand Up @@ -3651,9 +3624,6 @@ sa.appShow = function(option, prop) {
obj.$url_path = _.getPath(option.path);
obj.$title = _.getPageTitle(option.path);
}
if (_.isObject(sa.para.preset_properties.location) && (sa.para.preset_properties.location.type === 'wgs84' || sa.para.preset_properties.location.type === 'gcj02')) {
sa.getLocation();
}
_.setShareInfo(option, obj);
var utms = _.setUtm(option, obj);
_.setLatestChannel(utms.pre2);
Expand Down
2 changes: 1 addition & 1 deletion sensorsdata.custom.es6.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sensorsdata.custom.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sensorsdata.es6.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sensorsdata.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sensorsdata.plugin.es6.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sensorsdata.plugin.min.js

Large diffs are not rendered by default.

0 comments on commit 323246b

Please sign in to comment.