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

chore: build

上级 d2614ed4
......@@ -6636,6 +6636,13 @@ var serviceContext = (function () {
if (typeof appAuthorizeSetting === 'string') { appAuthorizeSetting = JSON.parse(appAuthorizeSetting); }
} 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
}
......@@ -8491,11 +8498,6 @@ var serviceContext = (function () {
function createPushMessage (params, callbackId) {
const setting = getAppAuthorizeSetting();
if (!hasOwn(setting, 'notificationAuthorized')) {
return invoke$1(callbackId, {
errMsg: 'createPushMessage:fail missing push module'
})
}
if (setting.notificationAuthorized !== 'authorized') {
return invoke$1(callbackId, {
errMsg: 'createPushMessage:fail ' + setting.notificationAuthorized
......
......@@ -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'
const protocols = {
......@@ -911,7 +924,8 @@ const protocols = {
showActionSheet,
getAppBaseInfo,
getDeviceInfo,
getWindowInfo
getWindowInfo,
getAppAuthorizeSetting
};
const todos = [
'vibrate',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册