setter
parent
a028686fb4
commit
95ff287fb3
|
@ -690,7 +690,7 @@ class Coupon extends Base
|
||||||
|
|
||||||
//6. 核销用户提现到零钱 写入红包记录
|
//6. 核销用户提现到零钱 写入红包记录
|
||||||
if($confirmDistributedMoney > 0 && !empty($consumerRedpackUser)){
|
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)){
|
if(!empty($distributedRedpack)){
|
||||||
$consumerMchBillno = $distributedRedpack->mch_billno;
|
$consumerMchBillno = $distributedRedpack->mch_billno;
|
||||||
|
@ -742,7 +742,7 @@ class Coupon extends Base
|
||||||
//7 分销者用户提现到零钱 写入红包记录
|
//7 分销者用户提现到零钱 写入红包记录
|
||||||
if($confirmDistributionMoney > 0 && !empty($distributionRedpackUser)){
|
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)){
|
if(!empty($distributionRedpack)){
|
||||||
$distributionMchBillno = $distributionRedpack->mch_billno;
|
$distributionMchBillno = $distributionRedpack->mch_billno;
|
||||||
|
@ -810,7 +810,7 @@ class Coupon extends Base
|
||||||
"redpack" =>$returnConsumerMoney,
|
"redpack" =>$returnConsumerMoney,
|
||||||
"user_coupon_id" =>$couponId,
|
"user_coupon_id" =>$couponId,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
}catch (RepositoryException $e){
|
}catch (RepositoryException $e){
|
||||||
Db::rollback();
|
Db::rollback();
|
||||||
return $this->json(5001, "Repository服务器错误");
|
return $this->json(5001, "Repository服务器错误");
|
||||||
|
|
Loading…
Reference in New Issue