web.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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. Route::post('/upMatch', function () {
  28. return appExec('api', 'WriteSports', 'upMatch');
  29. });
  30. /**
  31. * 得到指定游戏的当前期信息
  32. */
  33. // Route::get('/getCurrentGame', function () {
  34. // return appExec('api', 'PrizeHandle', 'getNewprizeGamedata');
  35. // });
  36. /**
  37. * 设定指定游戏的当前期状态
  38. */
  39. // Route::get('/setCurrentGameStatus', function () {
  40. // return appExec('api', 'PrizeHandle', 'updateCloses');
  41. // });
  42. Route::get('/api/BetLog/getBetLog', function () {
  43. return appExec('api', 'BetLog', 'getBetLog');
  44. });
  45. Route::get('/odds', function () {
  46. return appExec('api', 'BetLog', 'odds');
  47. });
  48. Route::get('/rechargeMoney', function () {
  49. return appExec('admin', 'Regulation', 'AddOrCutMoney');
  50. });
  51. //获取封盘信息
  52. Route::get('/getSealInfo', function () {
  53. return appExec('api', 'SixPrize', 'getSealInfo');
  54. });
  55. //获取正在开奖的六合信息信息
  56. Route::get('/getOpeningInfo', function () {
  57. return appExec('api', 'SixPrize', 'getOpeningInfo');
  58. });
  59. //finishPrize
  60. //获取正在开奖的完成修改状态
  61. Route::get('/finishPrize', function () {
  62. return appExec('api', 'SixPrize', 'finishPrize');
  63. });
  64. //reSetStatus
  65. Route::get('/reSet', function () {
  66. return appExec('api', 'SixPrize', 'reSetStatus');
  67. });
  68. //修改状态
  69. Route::get('/updateStatus', function () {
  70. return appExec('api', 'SixPrize', 'updateStatus');
  71. });
  72. //修改状态
  73. // Route::get('/countHistory',function(){
  74. // return appExec('api','History','index');
  75. // });
  76. //修改状态
  77. // Route::get('/HistoryCount',function(){
  78. // return appExec('api','History','count');
  79. // });
  80. Auth::routes();
  81. //适配模型控制器方法的路由
  82. Route::any('/{module}/{class}/{action}', function ($module, $class, $action) {
  83. return appExec('admin', $class, $action);
  84. })->middleware('admin');
  85. /*
  86. * 支付相关路由
  87. */
  88. Route::namespace('Payment')
  89. // ->middleware('admin')
  90. ->prefix('payment')
  91. ->middleware('admin')
  92. ->group(
  93. function () {
  94. Route::get('gateways', 'PaymentController@gateways');//网关列表页
  95. Route::get('getGatewayList', 'PaymentController@getGatewayList');//网关列表接口
  96. Route::get('removeGatewayHandler', 'PaymentController@removeGatewayHandler');//网关删除接口
  97. Route::get('gatewayAdd', 'PaymentController@gatewayAdd');//网关添加页面
  98. Route::get('gatewayEdit', 'PaymentController@gatewayEdit');//网关编辑页面
  99. Route::post('gatewayHandler', 'PaymentController@gatewayHandler');//网关添加/编辑接口
  100. Route::get('GatewayStatusSwitch', 'PaymentController@GatewayStatusSwitch');//网关状态切换接口
  101. Route::get('channels', 'PaymentController@channels');//通道列表页面
  102. Route::get('channelAdd', 'PaymentController@channelAdd');//通道添加页面
  103. Route::get('channelEdit', 'PaymentController@channelEdit');//通道修改页面
  104. Route::get('getChannelList', 'PaymentController@getChannelList');//通道列表接口
  105. Route::post('channelHandler', 'PaymentController@channelHandler');//通道添加/编辑接口
  106. Route::get('removeChannelHandler', 'PaymentController@removeChannelHandler');//通道删除接口
  107. Route::get('ChannelStatusSwitch', 'PaymentController@ChannelStatusSwitch');//切换通道接口
  108. Route::get('search_gateway_name', 'PaymentController@search_gateway_name');//搜索网关名称
  109. Route::get('order', 'OrderController@index');//订单列表页
  110. Route::get('getOrderList', 'OrderController@getOrderList');//订单列表接口
  111. Route::get('orderInfo', 'OrderController@orderInfo');//订单详情
  112. Route::get('removeOrder', 'OrderController@removeOrder');//订单作废接口
  113. Route::get('updateOrderStatus', 'OrderController@updateOrderStatus');//修改订单状态接口
  114. Route::get('viewDetail', 'OrderController@viewDetail');
  115. Route::get('export', 'OrderController@export');//导出
  116. Route::get('cancelOrder', 'OrderController@cancelOrder');//超过24小时订单作废接口
  117. Route::get('deleteAllOrder', 'OrderController@deleteAllOrder');//删除超过30天的所有订单接口
  118. }, 'payment');
  119. // Route::any('/read','\App\\Http\\Controllers\\Demo\\DemoController@getCsv');
  120. // Route::resource ('/notice/publish','\App\\Http\\Controllers\\Admin\\PublishApiController');
  121. // Route::get('/admin/pubAdmin','\App\\Http\\Controllers\\Admin\\PublishController@index');