- 小程序支付问题咨询?
小程序能否同时接入两个不同主体的微信商户进行支付功能?
2024-01-28 - 小程序uploadFile接口问题?
有少数用户的手机上调用上传文件接口出现问题,日志有这些情况,请问都是些什么情况 1、"errno":5,"errMsg":"uploadFile:fail fail:time out" 2、"errno":600001,"errMsg":"uploadFile:fail upload fail:-103:net::ERR_CONNECTION_ABORTED" 3、"errno":600001,"errMsg":"uploadFile:fail errcode:-118 cronet_error_code:-118 error_msg:net::ERR_CONNECTION_TIMED_OUT" 4、"errno":600001,"errMsg":"uploadFile:fail errcode:-7 cronet_error_code:-7 error_msg:net::ERR_TIMED_OUT" 5、"errno":600001,"errMsg":"request:fail -109:net::ERR_ADDRESS_UNREACHABLE" 6、"errno":600001,"errMsg":"uploadFile:fail upload fail:-101:net::ERR_CONNECTION_RESET" 7、"errno":600001,"errMsg":"uploadFile:fail upload fail:-109:net::ERR_ADDRESS_UNREACHABLE"
2023-05-20 - 微信小程序摄像获取图像失败问题?
options.cameraContext.takePhoto({ quality: options.quality, success: (photo) => { wx.getImageInfo({ src: photo.tempImagePath, success: function (res) { var ctx = wx.createCanvasContext(options.canvasId, this); var ratio = 1.1; var canvasWidth = res.width; var canvasHeight = res.height; while (canvasWidth > options.sizeArea.maxWidth || canvasHeight > options.sizeArea.maxHeight) { //比例取整 canvasWidth = Math.trunc(res.width / ratio) canvasHeight = Math.trunc(res.height / ratio) ratio = ratio + 0.1; } ratio = 1.1 while (canvasWidth < options.sizeArea.minWidth || canvasHeight < options.sizeArea.minHeight) { //比例取整 canvasWidth = Math.trunc(canvasWidth * ratio) canvasHeight = Math.trunc(canvasHeight * ratio) ratio = ratio + 0.1; } var canvasData = { canvasWidth: canvasWidth, canvasHeight: canvasHeight } if (options.setData) { options.setData(canvasData) //设置canvas尺寸 } ctx.clearRect(0, 0, canvasWidth, canvasHeight); ctx.clearRect(0, 0, canvasWidth, canvasHeight); ctx.drawImage(photo.tempImagePath, 0, 0, canvasWidth, canvasHeight); ctx.draw() //下载canvas图片 setTimeout(function () { wx.canvasToTempFilePath({ canvasId: options.canvasId, fileType: options.fileType, destWidth: canvasWidth, destHeight: canvasHeight, success: function (res) { if (options.success) options.success(res); ctx.clearRect(0, 0, canvasWidth, canvasHeight); }, fail: function (error) { log.error("canvasToTempFilePath", error); console.log('图片处理失败', error); if (options.fail) options.fail(error); } }) }, 600) }, fail: function (error) { log.error("getImageInfo", error); console.log('获取图像失败', error); if (options.fail) options.fail(error); } }) }, fail: function (error) { log.error("takePhoto", error); console.log('摄像失败', error); if (options.fail) options.fail(error); } }) 客户端版本:8.0.32 基础库版本:2.30.0 系统类型:Android 出现获取图像失败情况,错误信息:getImageInfo:fail parameter error: parameter.src should be String instead of Null; 有什么解决办法吗
2023-02-03 - 网站微信扫码登录在谷歌浏览器无法跳转?
[图片] 网页中内嵌式微信扫码登录,设置的redirect_uri 中间页面使用top.location.href="xxx",在搜狗浏览器测试正常跳转,在谷歌浏览器无法进行页面跳转?
2021-06-28