WIN-2308041133\Administrator 4 月之前
父節點
當前提交
cb3f98375e
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/common/repositories/user/UserExtractRepository.php

+ 3 - 3
app/common/repositories/user/UserExtractRepository.php

@@ -353,7 +353,7 @@ class UserExtractRepository extends BaseRepository
         }
         $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'));
             // 如果有返回数组,调用相应的支付方法
@@ -384,8 +384,8 @@ class UserExtractRepository extends BaseRepository
                         'link_id' => $id,
                         'status' => 0,
                         'title' => '提现退还',
-                        'number' => $data['extract_price'],
-                        'mark' => '用户提现审核失败,退回奖金'.$data['extract_price'].'元',
+                        'number' => $extract['extract_price'],
+                        'mark' => '用户提现审核失败,退回奖金'.$extract['extract_price'].'元',
                         'balance' => $brokerage_price
                     ]);
                 }