From 6f1019efb6b76db8a6f4e82312a6c62148e35c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=89=E9=9B=B6=E7=BD=91=E7=A7=91?= <5062250@qq.com> Date: Mon, 6 Nov 2017 17:53:57 +0800 Subject: [PATCH] Update WechatPay.php --- Wechat/WechatPay.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Wechat/WechatPay.php b/Wechat/WechatPay.php index 257be09..c680137 100644 --- a/Wechat/WechatPay.php +++ b/Wechat/WechatPay.php @@ -476,12 +476,11 @@ public function sendRedPack($openid, $total_amount, $mch_billno, $sendname, $wis $data['send_name'] = $sendname; //商户名称 $data['re_openid'] = $openid; //红包接收者 $data['total_amount'] = $total_amount; //红包总金额 - $data['total_num'] = '1'; //发放人数据 + $data['total_num'] = $total_num; //发放人数据 $data['wishing'] = $wishing; //红包祝福语 $data['client_ip'] = Tools::getAddress(); //调用接口的机器Ip地址 $data['act_name'] = $act_name; //活动名称 $data['remark'] = $remark; //备注信息 - $data['total_num'] = $total_num; !empty($scene_id) && $data['scene_id'] = $scene_id; !empty($risk_info) && $data['risk_info'] = $risk_info; !empty($consume_mch_id) && $data['consume_mch_id'] = $consume_mch_id;