master
wangxinglong 2022-03-16 15:52:44 +08:00
parent 1fe37bb0e7
commit 1213abfe93
1 changed files with 3 additions and 2 deletions

View File

@ -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}");
}
}
}