|
@@ -353,7 +353,7 @@ class UserExtractRepository extends BaseRepository
|
|
|
}
|
|
}
|
|
|
$userBillRepository = app()->make(UserBillRepository::class);
|
|
$userBillRepository = app()->make(UserBillRepository::class);
|
|
|
// 使用事务处理以下操作,确保数据的一致性
|
|
// 使用事务处理以下操作,确保数据的一致性
|
|
|
- Db::transaction(function () use ($id, $data, $user, $brokerage_price, $ret, $service, $func, $userBillRepository, $out) {
|
|
|
|
|
|
|
+ Db::transaction(function () use ($id, $data, $user, $brokerage_price, $ret, $service, $func, $userBillRepository, $out,$extract) {
|
|
|
// 触发状态切换前的事件
|
|
// 触发状态切换前的事件
|
|
|
event('user.extractStatus.before', compact('id', 'data'));
|
|
event('user.extractStatus.before', compact('id', 'data'));
|
|
|
// 如果有返回数组,调用相应的支付方法
|
|
// 如果有返回数组,调用相应的支付方法
|
|
@@ -384,8 +384,8 @@ class UserExtractRepository extends BaseRepository
|
|
|
'link_id' => $id,
|
|
'link_id' => $id,
|
|
|
'status' => 0,
|
|
'status' => 0,
|
|
|
'title' => '提现退还',
|
|
'title' => '提现退还',
|
|
|
- 'number' => $data['extract_price'],
|
|
|
|
|
- 'mark' => '用户提现审核失败,退回奖金'.$data['extract_price'].'元',
|
|
|
|
|
|
|
+ 'number' => $extract['extract_price'],
|
|
|
|
|
+ 'mark' => '用户提现审核失败,退回奖金'.$extract['extract_price'].'元',
|
|
|
'balance' => $brokerage_price
|
|
'balance' => $brokerage_price
|
|
|
]);
|
|
]);
|
|
|
}
|
|
}
|