setter
parent
1fe37bb0e7
commit
1213abfe93
|
@ -752,8 +752,6 @@ class Coupon extends Base
|
|||
"distributed_coupon_main_id" => $coupon->couponMain->id,
|
||||
];
|
||||
|
||||
Db::rollback();
|
||||
return $this->json(4001,"agencyMoney{$agencyMoney}");
|
||||
|
||||
//发起支付
|
||||
$agencyResult = $payment->transfer->toBalance($agencyToBalanceData);
|
||||
|
@ -770,6 +768,9 @@ class Coupon extends Base
|
|||
}
|
||||
// 不管成功还是失败 都要写入
|
||||
Redpack::create($agencyRedpackData);
|
||||
Db::rollback();
|
||||
return $this->json(4001,"agencyMoney{$agencyMoney}");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue