提交 cbd5711e 编写于 作者: Q qiang

Merge branch 'dev' into alpha

...@@ -4,14 +4,22 @@ uni.invokePushCallback({ ...@@ -4,14 +4,22 @@ uni.invokePushCallback({
}); });
Promise.resolve().then(() => { Promise.resolve().then(() => {
plus.push.setAutoNotification && plus.push.setAutoNotification(false); plus.push.setAutoNotification && plus.push.setAutoNotification(false);
const info = plus.push.getClientInfo(); plus.push.getClientInfoAsync((info) => {
if (info.clientid) { if (info.clientid) {
// @ts-expect-error
uni.invokePushCallback({
type: 'clientId',
cid: info.clientid,
});
}
}, (res) => {
// @ts-expect-error // @ts-expect-error
uni.invokePushCallback({ uni.invokePushCallback({
type: 'clientId', type: 'clientId',
cid: info.clientid, cid: '',
errMsg: res.code + ': ' + res.message,
}); });
} });
plus.push.addEventListener('click', (result) => { plus.push.addEventListener('click', (result) => {
// @ts-expect-error // @ts-expect-error
uni.invokePushCallback({ uni.invokePushCallback({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册