1
0

first commit

This commit is contained in:
2020-08-06 15:36:28 +08:00
commit fe5c11976c
12348 changed files with 1411979 additions and 0 deletions

75
routes/api.php Normal file
View File

@@ -0,0 +1,75 @@
<?php
use Illuminate\Routing\Router;
Route::post('auth/login', 'AuthController@login');
Route::post('auth/login_dd', 'AuthController@login_dd');
Route::post('orders/notification', 'OrderNotifyController@index')->name('order.notify');
//首页
$router->get('index', 'IndexController@index');
$router->get('index/policys', 'IndexController@policys');
$router->get('index/explains', 'IndexController@explains');
//政策
$router->get('policys', 'PolicyController@index');
$router->get('policys/{policy}', 'PolicyController@show');
//解读
$router->get('explains', 'ExplainController@index');
$router->get('explains/{explain}', 'ExplainController@show');
//资讯
$router->get('articles', 'ArticleController@index');
$router->get('articles/{article}', 'ArticleController@show');
//产品包
$router->get('goods', 'GoodsController@index');
$router->get('goods/vip', 'GoodsController@vip');
$router->get('goods/{goods}', 'GoodsController@show');
//测试
$router->get('test', 'TestController@index');
$router->get('clearuser/{user}', 'TestController@deluser');
//部门列表
$router->get('categories', 'PolicyController@categories');
$router->get('trades', 'PolicyController@trades');
$router->get('parameters', 'PolicyController@parameters');
$router->get('areas', 'PolicyController@areas');
//推荐
$router->get('team/recommen/{user}', 'TeamController@recommen');
Route::group(['middleware' => ['token_auth']], function (Router $router) {
// 用户中心
$router->get('user', 'UserController@index');
$router->post('password', 'UserController@password');
$router->get('user/info', 'UserController@info');
//订单
$router->get('orders', 'OrderController@index');
$router->get('orders/show/{order}', 'OrderController@show');
// 立即购买
$router->get('orders/directBuy', 'OrderController@directBuy');
$router->post('orders/directBuy', 'OrderController@directSave');
$router->delete('orders/{order}', 'OrderController@cancel');
$router->post('orders/pay', 'OrderController@pay');
$router->get('orders/{order}', 'OrderController@show');
//收藏夹
$router->get('favorites', 'FavoriteController@index');
$router->get('articles/{article}/favorite', 'ArticleController@favorite');
$router->get('policys/{policy}/favorite', 'PolicyController@favorite');
$router->get('explains/{explain}/favorite', 'ExplainController@favorite');
//我的邀请
$router->get('team', 'TeamController@index');
//提现
$router->get('withdraw', 'WithdrawController@index');
$router->post('withdraw', 'WithdrawController@do');
$router->get('withdraw/log', 'WithdrawController@logs');
//收入明细
$router->get('account/log', 'AccountController@logs');
});

12
routes/channels.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
/*
|--------------------------------------------------------------------------
| Broadcast Channels
|--------------------------------------------------------------------------
|
| Here you may register all of the event broadcasting channels that your
| application supports. The given channel authorization callbacks are
| used to check if an authenticated user can listen to the channel.
|
*/

12
routes/console.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
/*
|--------------------------------------------------------------------------
| Console Routes
|--------------------------------------------------------------------------
|
| This file is where you may define all of your Closure based console
| commands. Each Closure is bound to a command instance allowing a
| simple approach to interacting with each command's IO methods.
|
*/

12
routes/web.php Normal file
View File

@@ -0,0 +1,12 @@
<?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!
|
*/