web.php 4.9 KB

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