- 小程序多端制作消息推送时 出现npm 的错误?
我正确构建了 npm ,使用就报这个错误 // app.js import Push from "@tencentcloud/donut-push"; const sdkAppID = 0; // 您的 SDKAppID const appKey = ''; // 客户端密钥 const registrationID = ""; //用户的 registrationID const listener = (param) => { console.log('onEvent', JSON.stringify(param)); } app.js错误: Error: module '@tencentcloud/donut-push.js' is not defined, require args is '@tencentcloud/donut-push' at q (VM3744 WASubContext.js:1) at n (VM3744 WASubContext.js:1) at app.js:2 at VM3744 WASubContext.js:1 at _.runWith (VM3744 WASubContext.js:1) at q (VM3744 WASubContext.js:1) at appservice.js:7 at doWhenAllScriptLoaded (getmainpackage.js:552) at getmainpackage.js:621 at getmainpackage.js:670(env: Windows,mp,1.06.2503281; lib: 3.8.3)
05-22 - 使用wx.miniapp.shareMiniProgramMessage多端应用失效,如何解决?
错误信息:wx.miniapp.shareMiniProgramMessage parameter error: parameter.webpageUrl should be String instead of Undefined;parameter.userName should be String instead of Undefined;parameter.imagePath should be String instead of Undefined;parameter.withShareTicket should be Boolean instead of Undefined;parameter.miniprogramType should be Number instead of Undefined;parameter.scene should be Number instead of Undefined; 以下是我的代码,找不到问题在哪里,上述错误提示好像我没有出现错误,但为何会提示: wx.miniapp.shareMiniProgramMessage({ userName: 'gh_77af01acc***', path: '/pages/index/index', title: '邀请参加聚会', imagePath: '/pages/thumb.png', webpageUrl: 'https://www.qq.com', withShareTicket: true, miniprogramType: 1, scene: 0, success(res) { wx.showToast({ title: '成功:分享小程序', }) console.log(res) }, fail() { wx.showToast({ title: '失败:分享小程序', }) } })
05-16 - 视频为什么无法播放?
我是用Video 组件,发现在苹果手机无法播放,黑屏,安卓手机可以播放,我以为是否视频编码问题,就直接链接别的网站的视频,结果可以播放,我又把别的网站可以播放的那一段视频下载下来,放到我的服务器上,结果不能播放,我想知道如果是微信操作的域名屏蔽,为什么安卓能播放,编码肯定不是问题,同一个视频,一个可以放,一个不能,放我们服务器就不能
2022-01-03