diff --git a/pages/API/uni-push/uni-push.uvue b/pages/API/uni-push/uni-push.uvue index abf640aa21440a5ebc563058a98356105c70515d..1fa0420ff04ca4d085e9409f858e9aa0c55bdd4e 100644 --- a/pages/API/uni-push/uni-push.uvue +++ b/pages/API/uni-push/uni-push.uvue @@ -1,6 +1,9 @@ @@ -129,7 +133,12 @@ content: `cid : ${res.cid}` }) }, - fail: () => { + fail: (err) => { + if (err.message.includes('uniPush is not enabled')) { + console.error('请先开通uni-push,详见文档:https://uniapp.dcloud.net.cn/unipush-v2.html#%E7%AC%AC%E4%B8%80%E6%AD%A5-%E5%BC%80%E9%80%9A'); + } else { + console.error(err); + } uni.hideLoading() uni.showToast({ title: `获取cid失败`,