个人案例
- 小程序是否可以直接调用现金红包中发放普通红包接口?
使用小程序的appid和对应的用户openid, 调用发放普通红包接口:https://api.mch.weixin.qq.com/mmpaymkttransfers/sendredpack, 返回值为 <result_code><![CDATA[FAIL]]></result_code> <err_code><![CDATA[ILLEGAL_APPID]]></err_code> <err_code_des><![CDATA[非法appid,请确认是否为公众号的appid]]></err_code_des>
2020-12-04 - 微信支付,小程序不能发放现金红包
微信支付的现金红包接口都通了,但是我参数用 小程序单独appid, 提示 非法appid,请确认是否为公众号的appid 我用另一个公众号的 appid ,提示 openid和appid不匹配 这什么原因呢,用户的openid是通过小程序登录之后获取的 ,是小程序不支持商户的现金红包功能吗? 商户已经关联了一个小程序和一个公众号
2019-03-04 - “获取商品列表API”报错“ system error” errcode:3001 ?
$api = "https://api.weixin.qq.com/wxaapi/broadcast/goods/getapproved?access_token={$accessToken}&offset=0&limit=99&status=2"; $this->curl->get($api); 返回结果: {"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 5f84fb5e-7129c612-53295ba0"}
2020-10-13 - 现金红包 签名错误
按照文档,生成签名和官方的签名工具生成的md5签名是一致的,但是就是报签名错误
2020-08-20 - 微信企业付款到零钱频率限制,限制的是IP还是商户号
[图片] 我的定时器需要操作多个商户号对不同用户进行付款,请问这里的限制是对服务器IP做的限制,还是针对不同的商户号做的限制
2020-11-25 - 小程序可以使用现金红包功能吗
在小程序中可以使用现金红包功能吗,还是只能在公众号中使用现金红包?
2017-11-13 - canvas 2D 真机不显示,开发工具上无任何问题?
<div class="poster-canvas" :style="{height:canvasHeight+'px'}"> <canvas type="2d" id="myCanvas" style="width:100%;height:100%;"></canvas> 开发工具上无任何问题,但真机调试/预览/发布至体验版都不显示canvas,控制台无报错,保存图片为空白 canvas用到的网络图片域名无问题,download,getImageInfo也都用了,都不行
2020-04-28 - TypeError: r.Canvas is not a constructor ?
[图片] canvas画布, 开发工具不报错,真机调试就出现错误: Unhandled promise rejection TypeError: r.Canvas is not a constructor
2019-10-31 - canvas 类型为2d时,使用CanvasContext.drawImage与预期的结果不符?
原本使用 var context = wx.createCanvasContext('firstCanvas') 这种方式来使用canvas,并且制作成分享图,得到的图片没有问题。后来优化成使用 2d 的方式来制作图片,ctx.drawImage 画出的图片却有问题 期望的结果: [图片] 得到的结果: [图片] 参数都是一样的,只是原先用的是图片本地路径,2d 用的是一个image, canvas的宽高为375*667: ctx.drawImage(path, 0, 0, 375, 375)
2020-02-19 - 如何解决Canvas 2D使用canvasToTempFilePath?
onLoad() { wx.createSelectorQuery() .select('#cardCanvas') .fields({ node: true, size: true, }) .exec(this.initCanvas.bind(this)) }, initCanvas(res) { const width = res[0].width; const height = res[0].height; const canvas = res[0].node; const ctx = canvas.getContext('2d'); const dpr = wx.getSystemInfoSync().pixelRatio; canvas.width = width * dpr; canvas.height = height * dpr; ctx.scale(dpr, dpr); ctx.draw(false, () => { wx.canvasToTempFilePath({ x: 0, y: 0, width, height, destWidth: width, destHeight: height, canvasId: 'cardCanvas', fileType: 'jpg', quality: 1, success(res) { console.log(res.tempFilePath) } }) } ) } 场景是在使用canvas2d时导出画布输出到图片,但是发现如下问题 1、使用canvas2d的上下文ctx调用draw()方法的时候报错:ctx.draw is not a function;at SelectorQuery callback function 2、canvasToTempFilePath的官方文档写着在 [代码]draw()[代码]回调里调用该方法才能保证图片导出成功。文档地址:https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.canvasToTempFilePath.html
2020-01-20