- cover-viewcover-imang覆盖在音视频组件上时在安卓机上一闪而过
- 当前 Bug 的表现(可附上截图) [图片] - 预期表现 [图片] - 复现路径 demo有点复杂涉及公司音视频账号,暂不能提供,问题:安卓机上不能正常显示,ios设备可以,麻烦官方给看一下什么问题导致的 - 提供一个最简复现 Demo
2018-12-23 - 小程序上传代码选择服务类目只有两个 1.旅游 2.教育 我这两个都不是
所在服务类目只有两个 一个教育 一个旅游 怎么会只有两个呢?? [图片]
2018-10-08 - 获取token无效,第一次拿的就无效。。什么情况啊?
- 当前 Bug 的表现(可附上截图) {"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest hint: [wI0285vr53!]"}- 预期表现 - 复现路径 https://api.weixin.qq.com/cgi-bin/getcallbackip?access_token='13_wPo8EcIX0f9O6fc-bXi6GtgNpziPwI9WIwCTIGliWY0m2LGV5i63L1Jm_YOO3cwkQOyfN3XfG725Bn39iwe4TVpswIDNaeZXT1qAYTaJ-VOdgR-_dOEpDITbpbQqvkdltls7io9sDKtUx6RWTVSdAEAYAX'- 提供一个最简复现 Demo】 https://api.weixin.qq.com/cgi-bin/getcallbackip?access_token='13_wPo8EcIX0f9O6fc-bXi6GtgNpziPwI9WIwCTIGliWY0m2LGV5i63L1Jm_YOO3cwkQOyfN3XfG725Bn39iwe4TVpswIDNaeZXT1qAYTaJ-VOdgR-_dOEpDITbpbQqvkdltls7io9sDKtUx6RWTVSdAEAYAX'
2018-09-13 - canvas处理图片上传保存图片流只显示一半
- 当前 Bug 的表现(可附上截图) [图片] - 预期表现 - 复现路径 - 提供一个最简复现 Demo js代码 wx.chooseImage({ count: 1, // 默认9 sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 sourceType: itemIndex == 0 ? ['album'] : ['camera'], success: (res) => { console.log(res.tempFilePaths) const item = new IMOperator(this).createNormalChatItem({ type: 'image', content: res.tempFilePaths, isMy: true, }); that.data.chatItems.push(item); that.setData({ chatItems: that.data.chatItems, scrollTopVal: that.data.scrollTopVal + 999, }); // 图片加水印功能 // var arr = that.data.fileList // res.tempFilePaths.forEach(function(item) { // arr.push(item) // }) // that.setData({ // fileList: arr // }) //获取图片详细信息 wx.getImageInfo({ src: res.tempFilePaths[0], success: (ress) => { console.log(ress) let date = new Date(); let time = that.formartDate(date); let ctx = wx.createCanvasContext('firstCanvas'); that.setData({ canvasHeight: ress.height, canvasWidth: ress.width }) //将图片src放到cancas内,宽高为图片大小 ctx.drawImage(res.tempFilePaths[0], 0, 0, ress.width, ress.height) //将声明的时间放入canvas ctx.setFontSize(20) //注意:设置文字大小必须放在填充文字之前,否则不生效 ctx.setFillStyle('blue') // ctx.setGlobalAlpha(0.5) ctx.fillText('15200000001', that.data.canvasWidth - 400, that.data.canvasHeight - 150) ctx.fillText(time, that.data.canvasWidth - 500, that.data.canvasHeight - 100) ctx.draw(false, function() { wx.canvasToTempFilePath({ canvasId: 'firstCanvas', success: (res) => { that.setData({ canvesimgurl:res.tempFilePath }) }, fail: (e) => { console.log(e) } }) }) wx.uploadFile({ url: '、、、', filePath: that.data.canvesimgurl, name: 'file', formData: {}, header: { "Content-Type": "multipart/form-data" }, success: function (res) { console.log(res) var url = res.data.url; var data = res.data.fileId; var imgtype = "image"; if (res.statusCode == 200) { that.sendmessage(data, url, imgtype) } else { let index = parseInt(that.data.chatItems.length - 1); that.updateViewWhenSendFailed(index) } console.log(res.data) }, fail: function (res) { console.log(res) }, complete: function (res) { console.log(res) } }) } }) } }); });
2018-08-27 - canvas画布保存的图片链接拒绝访问,上传报错
- 当前 Bug 的表现(可附上截图) [图片] - 预期表现 [图片] - 复现路径 - 提供一个最简复现 Demo js代码 Page({ data: { url:'', fileList:[], canvasHeight:'', canvasWidth:'', }, onLoad: function (e) { var that = this; wx.chooseImage({ count: 9, // 默认9 sourceType: ['camera'], sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有 success: function (res) { // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片 var arr = that.data.fileList res.tempFilePaths.forEach(function (item) { arr.push(item) }) that.setData({ fileList: arr }) //获取图片详细信息 wx.getImageInfo({ src: res.tempFilePaths[0], success: (ress) => { let date =new Date(); let time = date.toLocaleTimeString() let ctx = wx.createCanvasContext('firstCanvas') that.setData({ canvasHeight: ress.height, canvasWidth: ress.width }) //将图片src放到cancas内,宽高为图片大小 ctx.drawImage(res.tempFilePaths[0], 0, 0, ress.width, ress.height) //将声明的时间放入canvas ctx.setFontSize(30) //注意:设置文字大小必须放在填充文字之前,否则不生效 ctx.setFillStyle('blue') ctx.fillText('拍摄地点', 0, 100) ctx.fillText('单证类型', 100, 50) ctx.strokeText(time, 100, 10) ctx.draw(false, function () { wx.canvasToTempFilePath({ canvasId: 'firstCanvas', success: (res) => { console.log(res.tempFilePath) wx.uploadFile({ url: '', filePath: res.tempFilePath[0], name: 'file', formData:{}, header: { "Content-Type": "multipart/form-data" }, success: function (res) { console.log(res.data) }, fail: function (res) { console.log(res) }, complete: function (res) { console.log(res) } }) }, fail: (e) => { console.log(e) } }) }) } }) } }) } }) index.html <canvas class='canvas' style="width:{{canvasWidth}}px;height:{{canvasHeight}}px;top:{{canvasHeight*2}}px;" canvas-id="firstCanvas"></canvas> index.css .canvas{ position: fixed; top: 200%; left: 0; /* background: red;*/ width: 100%; height: 100%; }
2018-08-24