get-app-authorize-setting.js 330 字节
Newer Older
fxy060608's avatar
fxy060608 已提交
1
export function getAppAuthorizeSetting () {
2 3 4
  const { getAppAuthorizeSetting } = weex.requireModule('plus')
  let appAuthorizeSetting = getAppAuthorizeSetting()
  try {
fxy060608's avatar
fxy060608 已提交
5
    if (typeof appAuthorizeSetting === 'string') { appAuthorizeSetting = JSON.parse(appAuthorizeSetting) }
6 7 8
  } catch (error) { }

  return appAuthorizeSetting
fxy060608's avatar
fxy060608 已提交
9
}