提交 ca5c260c 编写于 作者: fxy060608's avatar fxy060608

chore(app): createPushMessage

上级 60755154
...@@ -14109,7 +14109,7 @@ const getAppAuthorizeSetting = defineSyncApi(API_GET_APP_AUTHORIZE_SETTING, () = ...@@ -14109,7 +14109,7 @@ const getAppAuthorizeSetting = defineSyncApi(API_GET_APP_AUTHORIZE_SETTING, () =
} }
catch (error) { } catch (error) { }
for (const key in appAuthorizeSetting) { for (const key in appAuthorizeSetting) {
if (Object.hasOwnProperty.call(appAuthorizeSetting, key)) { if (hasOwn$1(appAuthorizeSetting, key)) {
const value = appAuthorizeSetting[key]; const value = appAuthorizeSetting[key];
// @ts-ignore // @ts-ignore
if (value === 'undefined') if (value === 'undefined')
...@@ -16784,7 +16784,7 @@ const getUniverifyManager = defineSyncApi(API_GET_UNIVERIFY_MANAGER, () => { ...@@ -16784,7 +16784,7 @@ const getUniverifyManager = defineSyncApi(API_GET_UNIVERIFY_MANAGER, () => {
const createPushMessage = defineAsyncApi(API_CREATE_PUSH_MESSAGE, (opts, { resolve, reject }) => { const createPushMessage = defineAsyncApi(API_CREATE_PUSH_MESSAGE, (opts, { resolve, reject }) => {
const setting = getAppAuthorizeSetting(); const setting = getAppAuthorizeSetting();
if (setting.notificationAuthorized !== 'authorized') { if (setting.notificationAuthorized !== 'authorized') {
return reject(setting.notificationAuthorized); return reject(`notificationAuthorized: ` + setting.notificationAuthorized);
} }
const options = extend({}, opts); const options = extend({}, opts);
delete options.content; delete options.content;
......
...@@ -11,7 +11,7 @@ export const createPushMessage = defineAsyncApi<API_TYPE_CREATE_PUSH_MESSAGE>( ...@@ -11,7 +11,7 @@ export const createPushMessage = defineAsyncApi<API_TYPE_CREATE_PUSH_MESSAGE>(
(opts, { resolve, reject }) => { (opts, { resolve, reject }) => {
const setting = getAppAuthorizeSetting() const setting = getAppAuthorizeSetting()
if (setting.notificationAuthorized !== 'authorized') { if (setting.notificationAuthorized !== 'authorized') {
return reject(setting.notificationAuthorized) return reject(`notificationAuthorized: ` + setting.notificationAuthorized)
} }
const options = extend({}, opts) const options = extend({}, opts)
delete (options as any).content delete (options as any).content
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册