From ca5c260c531c96ad8c8fe50c2d36338cb70fb1e1 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Tue, 19 Jul 2022 11:38:52 +0800 Subject: [PATCH] chore(app): createPushMessage --- packages/uni-app-plus/dist/uni.runtime.esm.js | 4 ++-- packages/uni-app-plus/src/service/api/plugin/push.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/uni-app-plus/dist/uni.runtime.esm.js b/packages/uni-app-plus/dist/uni.runtime.esm.js index 4d2186d99..379b3b142 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 987e075e7..eaeea35f8 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 -- GitLab