From 109360fb08fae3b6e7638bd1e58a592f38e95930 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Sun, 21 Apr 2024 22:17:14 +0800 Subject: [PATCH] 1 --- app/api/controller/dealer/Withdraw.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/api/controller/dealer/Withdraw.php b/app/api/controller/dealer/Withdraw.php index b99e638a..7315cb77 100644 --- a/app/api/controller/dealer/Withdraw.php +++ b/app/api/controller/dealer/Withdraw.php @@ -12,12 +12,12 @@ declare (strict_types=1); namespace app\api\controller\dealer; -use think\response\Json; use app\api\controller\Controller; use app\api\model\dealer\User as DealerUserModel; use app\api\model\dealer\Withdraw as WithdrawModel; use app\api\service\User as UserService; use cores\exception\BaseException; +use think\response\Json; /** * 分销商提现 @@ -56,7 +56,8 @@ class Withdraw extends Controller $dealer = DealerUserModel::detail($userId); // 提交提现申请 $model = new WithdrawModel; - if ($model->submit($dealer, $this->postForm())) { + $data = $this->request->post(); + if ($model->submit($dealer, $data)) { return $this->renderSuccess([], '提现申请已提交成功,请等待审核'); } return $this->renderError($model->getError() ?: '提交失败');