修复:分销商提现 - 删除账号时报错
This commit is contained in:
parent
a3982cf37b
commit
ea9a9b63ed
|
|
@ -62,8 +62,7 @@ class WithdrawalAccount extends BaseController{
|
||||||
* Time: 2024/04/07 18:45
|
* Time: 2024/04/07 18:45
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function delInfo(){
|
public function delInfo($id){
|
||||||
$id = $this->request->param('id');
|
|
||||||
$this->repository->delete($id);
|
$this->repository->delete($id);
|
||||||
|
|
||||||
return app('json')->success('删除成功');
|
return app('json')->success('删除成功');
|
||||||
|
|
|
||||||
|
|
@ -446,7 +446,7 @@ Route::group('api/', function () {
|
||||||
Route::group('withdrawalAccount', function () {
|
Route::group('withdrawalAccount', function () {
|
||||||
Route::get('list', 'getList');// 获取账号列表
|
Route::get('list', 'getList');// 获取账号列表
|
||||||
Route::post('edit', 'editInfo');// 提交编辑
|
Route::post('edit', 'editInfo');// 提交编辑
|
||||||
Route::post('del', 'delInfo');// 删除
|
Route::post('del/:id', 'delInfo');// 删除
|
||||||
})->prefix('api.user.WithdrawalAccount/');
|
})->prefix('api.user.WithdrawalAccount/');
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue