sendBizRedPacket:fail scene 1001 not support?怎么解决

微信支付 文章 2021-03-22 10:01 849 0 全屏看文

AI助手支持GPT4.0

sendBizRedPacket:fail scene 1001 not support?怎么解决sendBizRedPacket:fail scene 1001 not support? How to deal with it

sendBizRedPacket:fail scene 1001 not support?怎么解决
  1. 小程序发放红包接口已经调通了,但是通过前端调用小程序红包领取接口出现这个问题:
  2. wx. sendBizRedPacket ({
  3.     timeStamp: '', // 支付签名时间戳,
  4.     nonceStr: '', // 支付签名随机串,不长于 32 位
  5.     package: '', //扩展字段,由商户传入
  6.     signType: '', // 签名方式,
  7.     paySign: '', // 支付签名
  8.     success:function(res){},
  9.     fail:function(res){},
  10.     complete:function(res){}
  11. })

所有参数都有传,发放接口传的场景值是:PRODUCT_2:抽奖

请问各位大佬是怎么解决的??


The red packet issuing interface of the applet has been called, but this problem occurs when calling the red packet receiving interface of the applet through the front end: Wx. Sendbizredpacket ({timestamp: ', / / payment signature timestamp, noncestr:', / / payment signature random string, no longer than 32-bit package: ', / / extended field, signtype:', / / signature method, paysign: '), //Payment signature success:function (res){}, fail:function (res){}, complete:function (RES) {}) all parameters are transferred, and the scene value transferred by the distribution interface is: product_ 2: How do you solve this problem??

回答:

Memory:

目前小程序红包仅支持用户微信扫码打开小程序,进行红包领取。(场景值1011,1025,1047,1124,小程序场景值详情参见文档

你访问场景值不对,所以无法发放成功

一直:发体验版的时候是可以指定场景值吗?
Memory:场景值是访问来源,不是你指定的
peng:

工具编译模式中选下扫码场景

一直:好的,我试试
一直:你好,我试了下还是报这个错
Yza:

只有扫码的情况打开才可以成功。扫二维码,扫小程序码,扫一物一码等情况。在IDE中 从编译模式中从扫码方式中 打开即可。先要在后端通过接API调用生成红包,再从前端中打开红包。

-EOF-

AI助手支持GPT4.0