提交 7250b5ac 编写于 作者: Q qiang

chore: build

上级 d2614ed4
...@@ -6636,6 +6636,13 @@ var serviceContext = (function () { ...@@ -6636,6 +6636,13 @@ var serviceContext = (function () {
if (typeof appAuthorizeSetting === 'string') { appAuthorizeSetting = JSON.parse(appAuthorizeSetting); } if (typeof appAuthorizeSetting === 'string') { appAuthorizeSetting = JSON.parse(appAuthorizeSetting); }
} catch (error) { } } catch (error) { }
for (const key in appAuthorizeSetting) {
if (Object.hasOwnProperty.call(appAuthorizeSetting, key)) {
const value = appAuthorizeSetting[key];
if (value === 'undefined') appAuthorizeSetting[key] = undefined;
}
}
return appAuthorizeSetting return appAuthorizeSetting
} }
...@@ -8491,11 +8498,6 @@ var serviceContext = (function () { ...@@ -8491,11 +8498,6 @@ var serviceContext = (function () {
function createPushMessage (params, callbackId) { function createPushMessage (params, callbackId) {
const setting = getAppAuthorizeSetting(); const setting = getAppAuthorizeSetting();
if (!hasOwn(setting, 'notificationAuthorized')) {
return invoke$1(callbackId, {
errMsg: 'createPushMessage:fail missing push module'
})
}
if (setting.notificationAuthorized !== 'authorized') { if (setting.notificationAuthorized !== 'authorized') {
return invoke$1(callbackId, { return invoke$1(callbackId, {
errMsg: 'createPushMessage:fail ' + setting.notificationAuthorized errMsg: 'createPushMessage:fail ' + setting.notificationAuthorized
......
...@@ -900,6 +900,19 @@ var getWindowInfo = { ...@@ -900,6 +900,19 @@ var getWindowInfo = {
} }
}; };
var getAppAuthorizeSetting = {
returnValue: function (result) {
const { locationReducedAccuracy } = result;
result.locationAccuracy = 'unsupported';
if (locationReducedAccuracy === true) {
result.locationAccuracy = 'reduced';
} else if (locationReducedAccuracy === false) {
result.locationAccuracy = 'full';
}
}
};
// import navigateTo from 'uni-helpers/navigate-to' // import navigateTo from 'uni-helpers/navigate-to'
const protocols = { const protocols = {
...@@ -911,7 +924,8 @@ const protocols = { ...@@ -911,7 +924,8 @@ const protocols = {
showActionSheet, showActionSheet,
getAppBaseInfo, getAppBaseInfo,
getDeviceInfo, getDeviceInfo,
getWindowInfo getWindowInfo,
getAppAuthorizeSetting
}; };
const todos = [ const todos = [
'vibrate', 'vibrate',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册