Fork自 DCloud / uni-app
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
export function getAppAuthorizeSetting () {
const { getAppAuthorizeSetting } = weex.requireModule('plus') let appAuthorizeSetting = getAppAuthorizeSetting() try {
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
}