From ea9a9b63edb403da1bae28ecbeae2fbe02e55c6a Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Mon, 8 Apr 2024 08:59:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=E5=88=86=E9=94=80?= =?UTF-8?q?=E5=95=86=E6=8F=90=E7=8E=B0=20-=20=E5=88=A0=E9=99=A4=E8=B4=A6?= =?UTF-8?q?=E5=8F=B7=E6=97=B6=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/user/WithdrawalAccount.php | 3 +-- route/api.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controller/api/user/WithdrawalAccount.php b/app/controller/api/user/WithdrawalAccount.php index 320810d..e9e742c 100644 --- a/app/controller/api/user/WithdrawalAccount.php +++ b/app/controller/api/user/WithdrawalAccount.php @@ -62,8 +62,7 @@ class WithdrawalAccount extends BaseController{ * Time: 2024/04/07 18:45 * @return mixed */ - public function delInfo(){ - $id = $this->request->param('id'); + public function delInfo($id){ $this->repository->delete($id); return app('json')->success('删除成功'); diff --git a/route/api.php b/route/api.php index 9ae43eb..1f1d226 100644 --- a/route/api.php +++ b/route/api.php @@ -446,7 +446,7 @@ Route::group('api/', function () { Route::group('withdrawalAccount', function () { Route::get('list', 'getList');// 获取账号列表 Route::post('edit', 'editInfo');// 提交编辑 - Route::post('del', 'delInfo');// 删除 + Route::post('del/:id', 'delInfo');// 删除 })->prefix('api.user.WithdrawalAccount/');