72 lines
3.2 KiB
PHP
72 lines
3.2 KiB
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|domain(config('host.web_host'))->
|
|
*/
|
|
Route::name('web.')->group(function ($route) {
|
|
$route->get('/', 'IndexController@index');
|
|
$route->get('/merchant/regist/{type}', 'IndexController@merchantRegist')->name('merchant.regist');
|
|
$route->post('/merchant/regist/post', 'IndexController@merchantRegistPost')->name('merchant.regist.post');
|
|
$route->get('/merchant/order/{type}/{id}', 'MerchantController@index')->name('merchant.order');
|
|
$route->post('/merchant/order/post', 'MerchantController@pay')->name('merchant.order.post');
|
|
$route->any('/merchant/order/notify/{type}/{method}', 'MerchantController@notify')->name('merchant.order.notify');
|
|
$route->any('/merchant/order/check', 'MerchantController@check')->name('merchant.order.check');
|
|
$route->any('/merchant/order/check/show/detail', 'MerchantController@checkShow')->name('merchant.order.check.show');
|
|
|
|
$route->any('md5/', 'IndexController@md5Code');
|
|
|
|
Route::group(['prefix' => 'server'], function ($route) {
|
|
$route->get('/', 'ServerController@index')->name('server');
|
|
$route->get('show/{id}', 'ServerController@show')->name('server.show');;
|
|
});
|
|
Route::group(['prefix' => 'auth'], function ($route) {
|
|
$route->get('/login', 'LoginController@showLoginForm')->name('login');
|
|
$route->get('/outlogin', 'LoginController@logout')->name('outlogin');
|
|
$route->get('/regist', 'RegisterController@showRegistrationForm')->name('regist');;
|
|
$route->post('/regist', 'RegisterController@register')->name('regist.post');;
|
|
$route->post('/login', 'LoginController@login')->name('login.post');
|
|
});
|
|
$route->get('about/{type}', 'AboutController@index')->name('about');
|
|
|
|
|
|
Route::group(['prefix' => 'user', 'middleware' => 'user'], function ($route) {
|
|
$route->get('/', 'UserController@index')->name('user.index');
|
|
$route->get('order', 'UserController@order')->name('user.order');
|
|
|
|
});
|
|
Route::group(['prefix' => 'order'], function ($route) {
|
|
$route->get('/', 'OrderController@index')->name('order.index');
|
|
$route->post('/order', 'OrderController@orderPost')->name('order.orderPost');
|
|
$route->post('/check', 'OrderController@orderCheck')->name('order.orderCheck');//检查订单
|
|
$route->post('/notify', 'OrderController@notify')->name('order.notify');//notify
|
|
|
|
});
|
|
|
|
Route::group(['prefix' => 'zhanxin'], function ($route) {
|
|
$route->get('/', 'ZhanxinController@index')->name('zhanxin.index');
|
|
$route->post('/order', 'ZhanxinController@orderPost')->name('zhanxin.orderPost');
|
|
|
|
});
|
|
|
|
Route::get('unionpay/pay', 'UnionPayController@pay');
|
|
//页面跳转同步通知页面路径
|
|
Route::any('unionpay/return', 'UnionPayController@result')->name('unpay.return');
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
//Auth::routes();
|
|
//
|
|
//Route::get('/home', 'HomeController@index')->name('home');
|
|
|
|
|