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() ?: '提交失败');