75 lines
2.3 KiB
PHP
Executable File
75 lines
2.3 KiB
PHP
Executable File
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
|
// +----------------------------------------------------------------------
|
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
// +----------------------------------------------------------------------
|
|
// | Author: liu21st <liu21st@gmail.com>
|
|
// +----------------------------------------------------------------------
|
|
|
|
|
|
use think\facade\Route;
|
|
|
|
//api模块路由
|
|
Route::domain('dgg-myyc-api', function () {
|
|
|
|
//首页
|
|
Route::rule('home','api/index/home');
|
|
//精品推荐
|
|
Route::rule('recommend_goods','api/index/recommend_goods');
|
|
|
|
//商品分类
|
|
Route::rule('category_list','api/index/category_list');
|
|
//商品列表
|
|
Route::rule('goods_list','api/index/goods_list');
|
|
//商品详情
|
|
Route::rule('goods_info','api/index/goods_info');
|
|
|
|
//授权登陆
|
|
Route::rule('login','api/auth/login');
|
|
|
|
//我的设备
|
|
Route::rule('u-equipment','api/user/equipment');
|
|
//收益统计
|
|
Route::rule('u-profit_census','api/user/profit_census');
|
|
//提现记录
|
|
Route::rule('u-withdraw','api/user/withdraw');
|
|
//积分记录
|
|
Route::rule('u-accountlog','api/user/account_log');
|
|
//邀请记录
|
|
Route::rule('u-invitation_user','api/user/invitation_user');
|
|
//用户中心
|
|
Route::rule('u-userhome','api/user/userhome');
|
|
//账户列表
|
|
Route::rule('u-account_list','api/user/account_list');
|
|
//添加账户
|
|
Route::rule('u-account_add','api/user/account_add');
|
|
//删除账户
|
|
Route::rule('u-account_dal','api/user/account_dal');
|
|
//提现申请
|
|
Route::rule('u-wthdrawal','api/user/wthdrawal');
|
|
//领取体验设备
|
|
Route::rule('u-experience','api/user/experience');
|
|
|
|
//定时产生收益
|
|
Route::rule('h-order','api/index/order');
|
|
|
|
//miss路由
|
|
Route::miss(function (){
|
|
return json([
|
|
'code' => 404,
|
|
'msg' => '接口不存在',
|
|
'data' => '',
|
|
], 404);
|
|
});
|
|
});
|
|
|
|
|
|
Route::alias('region','\yupoxiong\region\RegionController');
|
|
|
|
return [
|
|
|
|
];
|