From 873321d19cb69b77ca7115c98373997724d961e0 Mon Sep 17 00:00:00 2001 From: liapples Date: Thu, 29 Jul 2021 19:13:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Api/ProductController.php | 15 --------------- routes/api.php | 8 ++++++-- 2 files changed, 6 insertions(+), 17 deletions(-) delete mode 100644 app/Http/Controllers/Api/ProductController.php diff --git a/app/Http/Controllers/Api/ProductController.php b/app/Http/Controllers/Api/ProductController.php deleted file mode 100644 index db45fe8..0000000 --- a/app/Http/Controllers/Api/ProductController.php +++ /dev/null @@ -1,15 +0,0 @@ -group(function () { # 微信支付 Route::prefix('wxpay')->group(function () { - Route::post('notify', 'WxpayController@notify')->name('wxpay_notify'); //异步通知 - Route::post('refund', 'WxpayController@refund')->name('wxpay_refund'); //退款通知 + Route::post('notify/{aid}', 'WxpayController@notify')->name('wxpay_notify'); //异步通知,aid为代理商ID + Route::post('refund/{aid}', 'WxpayController@refund')->name('wxpay_refund'); //退款通知,aid为代理商ID }); + + # 仅用于测试 + Route::get('t/index', 'TController@index'); }); # 需要登录才能请求 @@ -78,6 +81,7 @@ Route::namespace('App\Http\Controllers\Api') ->group(function () { # 我的频道 Route::prefix('user_channel')->group(function () { + Route::post('list', 'UserChannelController@index'); //我的频道列表 Route::post('update', 'UserChannelController@update'); //编辑我的频道 });