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/');