|
|
@ -21,6 +21,10 @@ use think\facade\Route; |
|
|
|
|
|
|
|
|
|
|
|
Route::group('api/', function () { |
|
|
|
Route::group('api/', function () { |
|
|
|
Route::any('test', 'api.Auth/test'); |
|
|
|
Route::any('test', 'api.Auth/test'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//兑换配置 |
|
|
|
|
|
|
|
Route::get('exchangeConfig', 'api.Auth/exchangeConfig'); |
|
|
|
|
|
|
|
|
|
|
|
//强制登录 |
|
|
|
//强制登录 |
|
|
|
Route::group(function () { |
|
|
|
Route::group(function () { |
|
|
|
Route::group('v2', function () { |
|
|
|
Route::group('v2', function () { |
|
|
@ -35,8 +39,6 @@ Route::group('api/', function () { |
|
|
|
Route::post('logout', 'api.Auth/logout'); |
|
|
|
Route::post('logout', 'api.Auth/logout'); |
|
|
|
//用户信息 |
|
|
|
//用户信息 |
|
|
|
Route::get('user', 'api.Auth/userInfo'); |
|
|
|
Route::get('user', 'api.Auth/userInfo'); |
|
|
|
//用户资产明细 |
|
|
|
|
|
|
|
Route::get('user/assetsLog', 'api.Auth/assetsLog'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//绑定推荐人 |
|
|
|
//绑定推荐人 |
|
|
|
Route::post('user/spread', 'api.Auth/spread'); |
|
|
|
Route::post('user/spread', 'api.Auth/spread'); |
|
|
@ -106,6 +108,9 @@ Route::group('api/', function () { |
|
|
|
Route::post('user/cancel', 'api.Auth/cancel'); |
|
|
|
Route::post('user/cancel', 'api.Auth/cancel'); |
|
|
|
//用户 |
|
|
|
//用户 |
|
|
|
Route::group('user', function () { |
|
|
|
Route::group('user', function () { |
|
|
|
|
|
|
|
//用户资产明细 |
|
|
|
|
|
|
|
Route::get('assetsLog', 'User/assetsLog'); |
|
|
|
|
|
|
|
|
|
|
|
//切换账号 |
|
|
|
//切换账号 |
|
|
|
Route::get('account', 'User/account'); |
|
|
|
Route::get('account', 'User/account'); |
|
|
|
Route::post('switch', 'User/switchUser'); |
|
|
|
Route::post('switch', 'User/switchUser'); |
|
|
|