web.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <?php
  2. /*
  3. |--------------------------------------------------------------------------
  4. | Web Routes
  5. |--------------------------------------------------------------------------
  6. |
  7. | Here is where you can register web routes for your application. These
  8. | routes are loaded by the RouteServiceProvider within a group which
  9. | contains the "web" middleware group. Now create something great!
  10. |
  11. */
  12. use Illuminate\Support\Facades\Route;
  13. Route::get('/', function () {
  14. S('URL_PATH', "/index");
  15. return view('vip.index');
  16. // return redirect('/admin/default/index');
  17. })->middleware('admin');
  18. //测试结算规则
  19. Route::get('api/Settlement/index', function () {
  20. return appExec('api', 'Settlement', 'index');
  21. });
  22. //写入赛事数据接口
  23. Route::post('/setSports', function () {
  24. return appExec('api', 'WriteSports', 'setSports');
  25. });
  26. /**
  27. * 得到指定游戏的当前期信息
  28. */
  29. // Route::get('/getCurrentGame', function () {
  30. // return appExec('api', 'PrizeHandle', 'getNewprizeGamedata');
  31. // });
  32. /**
  33. * 设定指定游戏的当前期状态
  34. */
  35. // Route::get('/setCurrentGameStatus', function () {
  36. // return appExec('api', 'PrizeHandle', 'updateCloses');
  37. // });
  38. Route::get('/api/BetLog/getBetLog', function () {
  39. return appExec('api', 'BetLog', 'getBetLog');
  40. });
  41. Route::get('/odds', function () {
  42. return appExec('api', 'BetLog', 'odds');
  43. });
  44. Route::get('/rechargeMoney', function () {
  45. return appExec('admin', 'Regulation', 'AddOrCutMoney');
  46. });
  47. //获取封盘信息
  48. Route::get('/getSealInfo', function () {
  49. return appExec('api', 'SixPrize', 'getSealInfo');
  50. });
  51. //获取正在开奖的六合信息信息
  52. Route::get('/getOpeningInfo', function () {
  53. return appExec('api', 'SixPrize', 'getOpeningInfo');
  54. });
  55. //finishPrize
  56. //获取正在开奖的完成修改状态
  57. Route::get('/finishPrize', function () {
  58. return appExec('api', 'SixPrize', 'finishPrize');
  59. });
  60. //reSetStatus
  61. Route::get('/reSet', function () {
  62. return appExec('api', 'SixPrize', 'reSetStatus');
  63. });
  64. //修改状态
  65. Route::get('/updateStatus', function () {
  66. return appExec('api', 'SixPrize', 'updateStatus');
  67. });
  68. //修改状态
  69. // Route::get('/countHistory',function(){
  70. // return appExec('api','History','index');
  71. // });
  72. //修改状态
  73. // Route::get('/HistoryCount',function(){
  74. // return appExec('api','History','count');
  75. // });
  76. Auth::routes();
  77. //适配模型控制器方法的路由
  78. Route::any('/{module}/{class}/{action}', function ($module, $class, $action) {
  79. return appExec('admin', $class, $action);
  80. })->middleware('admin');
  81. /*
  82. * 支付相关路由
  83. */
  84. Route::namespace('Payment')
  85. // ->middleware('admin')
  86. ->prefix('payment')
  87. ->middleware('admin')
  88. ->group(
  89. function () {
  90. Route::get('gateways', 'PaymentController@gateways');//网关列表页
  91. Route::get('getGatewayList', 'PaymentController@getGatewayList');//网关列表接口
  92. Route::get('removeGatewayHandler', 'PaymentController@removeGatewayHandler');//网关删除接口
  93. Route::get('gatewayAdd', 'PaymentController@gatewayAdd');//网关添加页面
  94. Route::get('gatewayEdit', 'PaymentController@gatewayEdit');//网关编辑页面
  95. Route::post('gatewayHandler', 'PaymentController@gatewayHandler');//网关添加/编辑接口
  96. Route::get('GatewayStatusSwitch', 'PaymentController@GatewayStatusSwitch');//网关状态切换接口
  97. Route::get('channels', 'PaymentController@channels');//通道列表页面
  98. Route::get('channelAdd', 'PaymentController@channelAdd');//通道添加页面
  99. Route::get('channelEdit', 'PaymentController@channelEdit');//通道修改页面
  100. Route::get('getChannelList', 'PaymentController@getChannelList');//通道列表接口
  101. Route::post('channelHandler', 'PaymentController@channelHandler');//通道添加/编辑接口
  102. Route::get('removeChannelHandler', 'PaymentController@removeChannelHandler');//通道删除接口
  103. Route::get('ChannelStatusSwitch', 'PaymentController@ChannelStatusSwitch');//切换通道接口
  104. Route::get('search_gateway_name', 'PaymentController@search_gateway_name');//搜索网关名称
  105. Route::get('order', 'OrderController@index');//订单列表页
  106. Route::get('getOrderList', 'OrderController@getOrderList');//订单列表接口
  107. Route::get('orderInfo', 'OrderController@orderInfo');//订单详情
  108. Route::get('removeOrder', 'OrderController@removeOrder');//订单作废接口
  109. Route::get('updateOrderStatus', 'OrderController@updateOrderStatus');//修改订单状态接口
  110. Route::get('viewDetail', 'OrderController@viewDetail');
  111. Route::get('export', 'OrderController@export');//导出
  112. Route::get('cancelOrder', 'OrderController@cancelOrder');//超过24小时订单作废接口
  113. Route::get('deleteAllOrder', 'OrderController@deleteAllOrder');//删除超过30天的所有订单接口
  114. }, 'payment');
  115. // Route::any('/read','\App\\Http\\Controllers\\Demo\\DemoController@getCsv');
  116. // Route::resource ('/notice/publish','\App\\Http\\Controllers\\Admin\\PublishApiController');
  117. // Route::get('/admin/pubAdmin','\App\\Http\\Controllers\\Admin\\PublishController@index');