diff --git a/packages/uni-app-plus/dist/uni.runtime.esm.js b/packages/uni-app-plus/dist/uni.runtime.esm.js index 4d2186d99110e22b2bba2c6af201096a05d7947b..379b3b1427e4f66c48f965554542afada79402b4 100644 --- a/packages/uni-app-plus/dist/uni.runtime.esm.js +++ b/packages/uni-app-plus/dist/uni.runtime.esm.js @@ -14109,7 +14109,7 @@ const getAppAuthorizeSetting = defineSyncApi(API_GET_APP_AUTHORIZE_SETTING, () = } catch (error) { } for (const key in appAuthorizeSetting) { - if (Object.hasOwnProperty.call(appAuthorizeSetting, key)) { + if (hasOwn$1(appAuthorizeSetting, key)) { const value = appAuthorizeSetting[key]; // @ts-ignore if (value === 'undefined') @@ -16784,7 +16784,7 @@ const getUniverifyManager = defineSyncApi(API_GET_UNIVERIFY_MANAGER, () => { const createPushMessage = defineAsyncApi(API_CREATE_PUSH_MESSAGE, (opts, { resolve, reject }) => { const setting = getAppAuthorizeSetting(); if (setting.notificationAuthorized !== 'authorized') { - return reject(setting.notificationAuthorized); + return reject(`notificationAuthorized: ` + setting.notificationAuthorized); } const options = extend({}, opts); delete options.content; diff --git a/packages/uni-app-plus/src/service/api/plugin/push.ts b/packages/uni-app-plus/src/service/api/plugin/push.ts index 987e075e7ef5b5b502e8f4b60c04f47a47ca9b3e..eaeea35f858e31e63a08a70cb674a205a6c4e272 100644 --- a/packages/uni-app-plus/src/service/api/plugin/push.ts +++ b/packages/uni-app-plus/src/service/api/plugin/push.ts @@ -11,7 +11,7 @@ export const createPushMessage = defineAsyncApi( (opts, { resolve, reject }) => { const setting = getAppAuthorizeSetting() if (setting.notificationAuthorized !== 'authorized') { - return reject(setting.notificationAuthorized) + return reject(`notificationAuthorized: ` + setting.notificationAuthorized) } const options = extend({}, opts) delete (options as any).content