laravel 事务不提交 不知道哪里写错了
以下是代码
DB::transaction(function () use ($payment,$userBalance) {
Payment::insert($payment);
$userName = $payment['payment_user_name'];
User::where('user_name', $userName)
->increment('user_balance', $userBalance);
});
跪求指教
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
认证0级讲师