From 95ff287fb39e65170ab6d03ba887ac8dd384c0d8 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Mon, 28 Mar 2022 19:58:00 +0800 Subject: [PATCH] setter --- app/controller/api/Coupon.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controller/api/Coupon.php b/app/controller/api/Coupon.php index f720114..b2b43bd 100644 --- a/app/controller/api/Coupon.php +++ b/app/controller/api/Coupon.php @@ -690,7 +690,7 @@ class Coupon extends Base //6. 核销用户提现到零钱 写入红包记录 if($confirmDistributedMoney > 0 && !empty($consumerRedpackUser)){ - $distributedRedpack = Redpack::getDistributionRedpack( Redpack::userTypeDistributed,$agencyRedpackUser->user_code,$coupon->id); + $distributedRedpack = Redpack::getDistributionRedpack( Redpack::userTypeDistributed,$consumerRedpackUser->user_code,$coupon->id); //如果付款过一次了 就查询付款状态 if(!empty($distributedRedpack)){ $consumerMchBillno = $distributedRedpack->mch_billno; @@ -742,7 +742,7 @@ class Coupon extends Base //7 分销者用户提现到零钱 写入红包记录 if($confirmDistributionMoney > 0 && !empty($distributionRedpackUser)){ - $distributionRedpack = Redpack::getDistributionRedpack( Redpack::userTypeDistribution,$agencyRedpackUser->user_code,$coupon->id); + $distributionRedpack = Redpack::getDistributionRedpack( Redpack::userTypeDistribution,$distributionRedpackUser->user_code,$coupon->id); //如果付款过一次了 就用同一个订单号发起 if(!empty($distributionRedpack)){ $distributionMchBillno = $distributionRedpack->mch_billno; @@ -810,7 +810,7 @@ class Coupon extends Base "redpack" =>$returnConsumerMoney, "user_coupon_id" =>$couponId, ]); - + }catch (RepositoryException $e){ Db::rollback(); return $this->json(5001, "Repository服务器错误");