-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: 新增功能订阅消息 #451
feat: 新增功能订阅消息 #451
Conversation
// @ts-ignore | ||
native.requestSubscribeMessage(options).then((res) => { | ||
if (res.errMsg === 'requestSubscribeMessage:ok') { | ||
options.success?.(res) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里建议用公共接口返回处理
if (res.errMsg === 'requestSubscribeMessage:ok') { | ||
options.success?.(res) | ||
} else { | ||
options.fail?.(res) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
} else { | ||
options.fail?.(res) | ||
} | ||
options.complete?.(res) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
}) | ||
} catch (res) { | ||
options.fail?.(res) | ||
options.complete?.(res) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同上
f852fbd
to
6dce2ae
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
这个 PR 做了什么? (简要描述所做更改)
这个 PR 是什么类型? (至少选择一个)
这个 PR 涉及以下平台:
)