diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index e8cf316..b432aca 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -384,7 +384,7 @@ class Coupon extends Base $toBalanceData = [ 'partner_trade_no' => $mch_billno,// 商户订单号,需保持唯一性(只能是字母或者数字,不能包含有符号) - 'openid' => $account->open_id, + 'openid' => $distributionUser->open_id, 'check_name' => 'NO_CHECK',// NO_CHECK:不校验真实姓名, FORCE_CHECK:强校验真实姓名 'amount' => $amount * 100, //单位为分,不小于100 'desc' => '优惠券分销,分销者领取奖励',