现在又出现这个 bug 了。
提交小程序审核,怎么老出现提交失败system error,怎么回事提交小程序审核,怎么老出现提交失败system error,怎么回事
2018-05-23整理一下,所以应该是这样吗? [代码]let openDataContext = wx.getOpenDataContext();[代码][代码]let sharedCanvas = openDataContext.canvas;[代码] [代码]let canvas = cc.game.canvas;[代码][代码]let context = canvas.getContext([代码][代码]'webgl'[代码][代码]);[代码][代码]context.drawImage(sharedCanvas, 0, 0);[代码]但是这样的话我会报错: cc.game.canvas.getContext(...).drawImage is not a function TypeError: cc.game.canvas.getContext(...).drawImage is not a function 而且我用了 Cocos Creator 的 camera 没办法不用 webgl 模式阿……
小游戏在获取关系链时遇到无法显示sharedCanvas的情况[代码]// 点击分享按钮[代码][代码]shareClicked:[代码][代码]function[代码][代码]() {[代码][代码] [代码][代码]if[代码] [代码](cc.sys.platform === cc.sys.WECHAT_GAME) {[代码] [代码] [代码][代码]var[代码] [代码]openDataContext = wx.getOpenDataContext()[代码][代码] [代码][代码]var[代码] [代码]sharedCanvas = openDataContext.canvas[代码] [代码] [代码][代码]if[代码] [代码](sharedCanvas) {[代码][代码] [代码][代码]cc.log ([代码][代码]"分享的面板存在"[代码][代码])[代码][代码] [代码][代码]}[代码] [代码] [代码][代码]var[代码] [代码]canvas = wx.createCanvas()[代码][代码] [代码][代码]var[代码] [代码]context = canvas.getContext([代码][代码]'2d'[代码][代码])[代码][代码] [代码][代码]context.drawImage(sharedCanvas, 0, 0)[代码] [代码] [代码][代码]cc.log ([代码][代码]"微信分享"[代码][代码])[代码][代码] [代码][代码]}[代码][代码]},[代码]在使用cocos creator开发小游戏时,需要获取些用户信息来制作排行版,根据提供的 https://mp.weixin.qq.com/debug/wxagame/dev/tutorial/open-ability/open-data.html?t=2018323 中的教程,主域和开放数据域的相关配置已经配置完成,但最后需要调用时却给出这样的提示: An unsecure canvas can't take an secure canvas as arugment of drawImage When using subcontext
2018-05-18