|
|
|
@ -67,9 +67,12 @@ Route::namespace('App\Http\Controllers\Api')->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'); //编辑我的频道
|
|
|
|
}); |
|
|
|
|
|
|
|
|