<?php

use App\Http\Controllers\Admin\RePayConfigController;
use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
 */

/**
 * 需要加�? rbac 控制的路由置于�?��??
 */
Route::any('/sendtele', 'Api\ApiController@sendTele');
Route::any('/repaycheck', 'Admin\TestController@repay');
Route::any('/testip', 'Api\ApiController@LoginIPCheck');
//Route::any('/callback', 'Api\BPayController@notify');
Route::any('/createid', 'Admin\GameDataController@makeGameid');
Route::any('/rf_gameinfo', 'Admin\LiveDataController@gameInfoReadFromDB');

Route::any('/lunch', 'Game\GameTestController@gameLunch');
Route::post('/bet', 'Game\OnlyGameController@platformBet');
Route::post('/info', 'Game\OnlyGameController@platformInfo');
Route::post('/win', 'Game\OnlyGameController@platformWin');
Route::post('/cancel', 'Game\OnlyGameController@platformCancel');
Route::any('/round_info', 'Game\OnlyGameController@roundInfo');



Route::group([
    'middleware' => ['cors'],
], function (\Illuminate\Routing\Router $route) {

    $route->any('/sso-login.api', 'Game\JiliSimController@loginSession');

    $route->any('/web-api/auth/session/v2/verifySession', 'Game\PgSimController@VerifySession');
    $route->any('/web-api/game-proxy/v2/GameUI/Get', 'Game\PgSimController@GameUI');
    $route->any('/web-api/game-proxy/Social/SocialInitConfig/Get', 'Game\PgSimController@SocialInitConfig');
    $route->any('/web-api/game-proxy/Tournament/InitLite', 'Game\PgSimController@InitLite');
    $route->any('/web-api/game-proxy/Tournament/TournamentExistance', 'Game\PgSimController@TournamentExistance');
    $route->any('/web-api/auth/session/v2/verifyOperatorPlayerSession', 'Game\PgSimController@verifyOperatorPlayerSession');
    $route->any('/web-api/game-proxy/v2/Resources/GetByReferenceIdsResourceTypeIds', 'Game\PgSimController@GetByReferenceIdsResourceTypeIds');
    $route->any('/web-api/game-proxy/v2/GameName/Get', 'Game\PgSimController@GameName');
    $route->any('/web-api/game-proxy/v2/BetHistory/Get', 'Game\PgSimController@BetHistory');
    $route->any('/web-api/game-proxy/v2/GameRule/Get', 'Game\PgSimController@GameRule');
    $route->any('/web-api/game-proxy/v2/BetSummary/Get', 'Game\PgSimController@BetSummary');
    $route->any('/web-api/game-proxy/v2/Resources/GetByResourcesTypeIds', 'Game\PgSimController@GetByResourcesTypeIds');
    $route->any('/web-api/game-proxy/v2/GameWallet/Get', 'Game\PgSimController@GameWallet');
//    $route->any('/game-api/dragon-hatch/v2/GameInfo/Get', 'Game\PgSimController@GameInfo');
//    $route->any('/game-api/{gameCode}/v2/GameInfo/Get', 'Game\PgSimController@GameInfo');
//    $route->any('/game-api/{gameCode}/v2/Spin', 'Game\PgSimController@Spin');
//    $route->any('/game-api/{gameCode}/v2/spin', 'Game\PgSimController@Spin');
});





Route::group([
    'middleware' => ['install.check', 'session.check', 'rbac', 'test', 'check.role'],
//    'as' => 'rbac',
], function ($route) {
    //控制�?
    // $route->get('console', 'Admin\IndexController@console');
//    $route->get('console', 'Admin\GameDataController@userOnlineView')->defaults('name', '控制�?');
    $route->get('console', 'Admin\LiveDataController@gameInfo')->defaults('name', '控制�?');


    $route->group(['prefix' => 'admin'], function (\Illuminate\Routing\Router $route) {



        // 系统健康状态�?�理
        $route->get('/system-health', 'Admin\SystemHealthController@index')->name('admin.system_health.index');
        $route->post('/system-health/update', 'Admin\SystemHealthController@update')->name('admin.system_health.update');

        $route->resource('repay_config', 'Admin\RePayConfigController');
        $route->any('/aries','Admin\AgentController@AriesCount');
        $route->any('/game_data/TigerBuyRecord','Admin\GameDataController@TigerBuyRecord');
        $route->any('/game_data/OxBuyRecord','Admin\GameDataController@OxBuyRecord');
        $route->any('/game_data/AztecBuyRecord','Admin\GameDataController@AztecBuyRecord');
        $route->any('/game_data/NewolyBuyRecord','Admin\GameDataController@NewOlympusBuyRecord');
        $route->any('/game_data/RabbitBuyRecord','Admin\GameDataController@RabbitBuyRecord');
        $route->any('/game_data/fishBuyRecord','Admin\GameDataController@fishBuyRecord');
        // 用户保护日志
        $route->any('/game_data/protect_logs','Admin\GameDataController@protectLogs');
        $route->get('callback/make', 'Admin\AccCallbackController@make');
        $route->get('callback/tempsend', 'Admin\AccCallbackController@sendBonusToAll');
        $route->get('dataview', 'Admin\GameDataController@userOnlineView');

        $route->get('/game/user/onlines', 'Admin\GameDataController@userOnline');
        $route->get('/createid', 'Admin\GameDataController@makeGameid');
        
        // 客户�?日志查�??
        $route->get('/client_log', 'Admin\ClientLogController@index')->defaults('name', '客户�?日志');
        $route->any('/client_log/query', 'Admin\ClientLogController@query');
        $route->get('/pwa_bonus_log', 'Admin\PwaBonusLogController@index')->defaults('name', 'PWA奖励日志');
//        $route->any('/game_data/GateBuyRecord','Admin\GameDataController@GateBuyRecord');
//        $route->any('/game_data/GateBuyRecord','Admin\GameDataController@GateBuyRecord');

        //菜单管理
        $route->get('menu/list', 'Admin\AdministratorController@menuList');
        $route->get('menu/add', 'Admin\AdministratorController@menuAddView');
        $route->post('menu/add', 'Admin\AdministratorController@menuAdd');
        $route->get('menu/update/{id}', 'Admin\AdministratorController@menuUpdateView');
        $route->post('menu/update/{id}', 'Admin\AdministratorController@menuUpdate');
        $route->post('menu/del/{id}', 'Admin\AdministratorController@menuDel');
        //角色管理
        $route->get('role/list', 'Admin\AdministratorController@roleList');
        $route->get('role/add', 'Admin\AdministratorController@roleAddView');
        $route->post('role/add', 'Admin\AdministratorController@roleAdd');
        $route->get('role/update/{id}', 'Admin\AdministratorController@roleUpdateView');
        $route->post('role/update/{id}', 'Admin\AdministratorController@roleUpdate');
        $route->post('role/del/{id}', 'Admin\AdministratorController@roleDel');
        //权限管理
        $route->get('permission/list', 'Admin\AdministratorController@permissionList');
        $route->get('permission/add', 'Admin\AdministratorController@permissionAddView');
        $route->post('permission/add', 'Admin\AdministratorController@permissionAdd');
        $route->get('permission/update/{id}', 'Admin\AdministratorController@permissionUpdateView');
        $route->post('permission/update/{id}', 'Admin\AdministratorController@permissionUpdate');
        $route->post('permission/del/{id}', 'Admin\AdministratorController@permissionDel');
        //管理员�?�理
        $route->get('administrator/list', 'Admin\AdministratorController@administratorList');
        $route->get('administrator/add', 'Admin\AdministratorController@administratorAddView');
        $route->post('administrator/add', 'Admin\AdministratorController@administratorAdd');
        $route->get('administrator/update/{id}', 'Admin\AdministratorController@administratorUpdateView');
        $route->post('administrator/update/{id}', 'Admin\AdministratorController@administratorUpdate');
        $route->post('administrator/ga/reset/{id}', 'Admin\AdministratorController@resetGaSecret');
        $route->post('administrator/del/{id}', 'Admin\AdministratorController@administratorDel');
        $route->post('administrator/block/{id}', 'Admin\AdministratorController@administratorBlock');
        //配置管理
        $route->get('config/list', 'Admin\ConfigController@configList');
        $route->get('config/add', 'Admin\ConfigController@configAddView');
        $route->post('config/add', 'Admin\ConfigController@configAdd');
        $route->get('config/update/{id}', 'Admin\ConfigController@configUpdateView');
        $route->post('config/update/{id}', 'Admin\ConfigController@configUpdate');
        $route->post('config/del/{id}', 'Admin\ConfigController@configDel');
        
        // 签到奖励配置
        $route->get('sign-in-reward/list', 'Admin\SignInRewardController@listView')->defaults('name', '签到奖励配置');
        $route->get('sign-in-reward/update/{dayNumber}', 'Admin\SignInRewardController@updateView');
        $route->post('sign-in-reward/update/{dayNumber}', 'Admin\SignInRewardController@update');
        
        //举报与反�?
        $route->get('/complaint/opinion', 'Admin\ComplaintController@opinionList');
        $route->get('/opinion/email/{id}', 'Admin\ComplaintController@emailView');
        $route->post('/opinion/sendemail/{id}', 'Admin\ComplaintController@sendEmail');
        $route->get('/complaint/accusation', 'Admin\ComplaintController@accusationList');
        $route->post('/complaint/accusation', 'Admin\ComplaintController@accusationList');
        $route->post('/accusation/edit/{id}', 'Admin\ComplaintController@accusationEdit');
        $route->post('/accusation/del/{id}', 'Admin\ComplaintController@accusationDel');
        $route->get('/opinion/reply/{id}', 'Admin\ComplaintController@replyAddView');
        $route->post('/opinion/reply/{id}', 'Admin\ComplaintController@replyAdd');
        //�?告�?�理
        $route->get('/notice/system', 'Admin\NoticeController@systemList');
        $route->any('/system/add', 'Admin\NoticeController@systemAddView');
        $route->post('/system/update_status', 'Admin\NoticeController@updateStatus');
        $route->any('/notice/hall_announcement', 'Admin\NoticeController@hallAnnouncement');
        $route->any('/notice/hall_announcement_add', 'Admin\NoticeController@hallAnnouncementAdd');
        $route->any('/notice/hall_announcement_update/{id}', 'Admin\NoticeController@hallAnnouncementUpdate');
        $route->any('/notice/hall_announcement_switch/{id}', 'Admin\NoticeController@hallAnnouncementSwitch');
        $route->any('/notice/hall_announcement_del/{id}', 'Admin\NoticeController@hallAnnouncementDel');
        $route->any('/notice/horse_race_lamp', 'Admin\NoticeController@horse_race_lamp');
        $route->any('/notice/horse_race_lamp_update/{id}', 'Admin\NoticeController@horse_race_lamp_update');


        $route->get('/notice/version', 'Admin\NoticeController@versionList');
        $route->get('/version/add', 'Admin\NoticeController@versionAddView');
        $route->post('/version/add', 'Admin\NoticeController@versionAdd');
        $route->get('/version/update/{id}', 'Admin\NoticeController@versionUpdateView');
        $route->post('/version/update/{id}', 'Admin\NoticeController@versionUpdate');
        $route->get('/notice/punish', 'Admin\NoticeController@punishList');
        $route->get('/punish/add', 'Admin\NoticeController@punishAddView');
        $route->post('/punish/add', 'Admin\NoticeController@punishAdd');
        $route->get('/punish/update/{id}', 'Admin\NoticeController@punishUpdateView');
        $route->post('/punish/update/{id}', 'Admin\NoticeController@punishUpdate');
        $route->post('/punish/excel', 'Admin\NoticeController@excel');
        //兑换管理
        $route->get('/exchange/hailefen', 'Admin\ExchangeController@hailefen');//嗨了�? 兑换
        $route->get('/exchange/treasure', 'Admin\ExchangeController@treasureList');
        $route->post('/treasure/update/{id}', 'Admin\ExchangeController@treasureUpdate');
        $route->get('/exchange/shop', 'Admin\ExchangeController@shopList');
        $route->post('/shop/update/{id}', 'Admin\ExchangeController@shopUpdate');
        $route->get('/exchange/goods', 'Admin\ExchangeController@goodsList');
        $route->post('/goods/update/{id}', 'Admin\ExchangeController@goodsUpdate');
        $route->get('/exchange/shop_goods', 'Admin\ExchangeController@shopGoodsList');
        $route->get('/shop_goods/add', 'Admin\ExchangeController@shopGoodsAddView');
        $route->post('/shop_goods/add', 'Admin\ExchangeController@shopGoodsAdd');
        $route->get('/shop_goods/update/{id}', 'Admin\ExchangeController@shopGoodsUpdateView');
        $route->post('/shop_goods/update/{id}', 'Admin\ExchangeController@shopGoodsUpdate');
        $route->get('/exchange/everyday_card', 'Admin\ExchangeController@everydayCard');
        $route->get('/exchange/treasure_goods', 'Admin\ExchangeController@treasureGoodsList');
        $route->get('/treasure_goods/add', 'Admin\ExchangeController@treasureGoodsAddView');
        $route->post('/treasure_goods/add', 'Admin\ExchangeController@treasureGoodsAdd');
        $route->get('/treasure_goods/update/{id}', 'Admin\ExchangeController@treasureGoodsUpdateView');
        $route->post('/treasure_goods/update/{id}', 'Admin\ExchangeController@treasureGoodsUpdate');

        // Superball 活跃活动后台统�??
        $route->get('/superball/daily', 'Admin\SuperballController@daily')->defaults('name', 'Superball 每日数据');
        $route->get('/superball/user-tasks', 'Admin\SuperballController@userTasks')->defaults('name', 'Superball 用户任务');
        $route->get('/superball/prizes', 'Admin\SuperballController@prizes')->defaults('name', 'Superball 奖励记录');
        $route->get('/exchange/code_list', 'Admin\ExchangeController@exchangeCodeList');
        $route->get('/gift/add', 'Admin\ExchangeController@giftAddView');
        $route->get('/gift/list', 'Admin\ExchangeController@giftList');
        $route->get('/gift', 'Admin\ExchangeController@giftAdd');
        $route->get('/code/add', 'Admin\ExchangeController@codesAddView');
        $route->post('/code/add', 'Admin\ExchangeController@codesAdd');
        $route->get('/exchange/revenueinfo', 'Admin\ExchangeController@revenueInfo');
        $route->get('/exchange/cost', 'Admin\ExchangeController@costList');
        $route->post('/cost/update/{id}', 'Admin\ExchangeController@costUpdate');


        // Reward code admin
        $route->get('/reward-code', 'Admin\RewardCodeController@index');
        $route->post('/reward-code', 'Admin\RewardCodeController@store');
        $route->post('/reward-code/{id}/status', 'Admin\RewardCodeController@updateStatus');
        $route->get('/reward-code/history', 'Admin\RewardCodeController@records');

        $route->get('/account_cookie/list', 'Admin\AccountCookieController@index')->name('admin.account_cookie.index');


        //充值�?�理
        $route->get('/recharge/config/cash', 'Admin\WithdrawalController@cashier_channel_config')->name('admin.cashier.config');
        $route->get('/recharge/list/{history?}', 'Admin\RechargeController@rechargeList');
        $route->get('/recharge/rank', 'Admin\RechargeController@rechargeRank');
        $route->get('/recharge/game_card_config', 'Admin\RechargeController@gameCardConfig');
        $route->get('/recharge/game_card_config_add', 'Admin\RechargeController@gameCardConfigAddView');
        $route->post('/recharge/game_card_config_add', 'Admin\RechargeController@gameCardConfigAdd');
        $route->post('/recharge/game_card_config_del/{id}', 'Admin\RechargeController@gameCardConfigDel');
        $route->any('/recharge/update_config/{id}', 'Admin\RechargeController@update_config');
        $route->any('/recharge/update_sort/{id}', 'Admin\RechargeController@update_sort');
        $route->any('/recharge/remarks/{id}', 'Admin\RechargeController@remarks');

        $route->any('/channel/minScore/{id}', 'Admin\ChannelController@minScore');
        $route->any('/channel/contrlScore/{id}', 'Admin\ChannelController@contrlScore');
        $route->any('/channel/rateN/{id}', 'Admin\ChannelController@rateN');

        /*补单*/
        $route->post('/recharge/supplement/{id}', 'Admin\RechargeController@supplement');
        // 充值�?�单退�?
        $route->post('/recharge/refund/{id}', 'Admin\RechargeController@refund');
        // 模拟上报 FB（仅管理员）
        $route->post('/recharge/fb_report_mock/{id}', 'Admin\RechargeController@fbReportMock');
        $route->get('/recharge/first_charge', 'Admin\RechargeController@firstCharge');
        $route->get('/recharge/first_charge_status', 'Admin\RechargeController@firstChargeStatus');
        $route->any('/recharge/poll', 'Admin\RechargeController@poll');
        $route->get('/recharge/recomendar_recharge', 'Admin\RechargeController@recomendar_recharge');
        $route->any('/recharge/updatePic/{id}', 'Admin\RechargeController@updatePic');
        $route->any('/recharge/clear_cache', 'Admin\RechargeController@clearCache');
        $route->any('/recharge/month_card_edit/{id}', 'Admin\RechargeController@monthCardEdit');
        $route->any('/recharge/month_card_channel_edit/{id}', 'Admin\RechargeController@monthCardChannelEdit');
        $route->any('/recharge/month_card_switch/{id}', 'Admin\RechargeController@monthCardSwitch');
        $route->any('/recharge/month_card_channel_switch/{CardID}/{channel}', 'Admin\RechargeController@monthCardChannelSwitch');
        //充�?-玩�?�充值�?�录
        $route->get('/recharge/record', 'Admin\RechargeController@record');
        $route->any('/recharge/config/{method}', 'Admin\RechargeController@config');
        $route->post('/recharge/switch/{id}', 'Admin\RechargeController@switch_control');
        // 充值档位修�?
        $route->get('/recharge/gear_list', 'Admin\RechargeController@gear_list');
        $route->any('/recharge/add', 'Admin\RechargeController@add');
        $route->any('/recharge/update/{id}', 'Admin\RechargeController@update');
        $route->any('/recharge/gear_switch/{id}', 'Admin\RechargeController@gear_switch');
        $route->any('/recharge/channel_switch/{id}', 'Admin\RechargeController@channel_switch');
        $route->get('/recharge/ip_white', 'Admin\RechargeController@ip_white');
        $route->any('/recharge/ip_white_update/{id}', 'Admin\RechargeController@ip_white_update');
        $route->any('/recharge/gift', 'Admin\RechargeController@gift');// 充值礼�?

        // 充值礼包配�?
        $route->get('/recharge/gift_list', 'Admin\RechargeController@gift_list');
        $route->any('/recharge/gift_add', 'Admin\RechargeController@gift_add');
        $route->any('/recharge/gift_update/{id}', 'Admin\RechargeController@gift_update');
        $route->post('/recharge/gift_delete/{id}', 'Admin\RechargeController@gift_delete');

        $route->get('/recharge/methods', 'Admin\RechargeController@methods');
        // �?付通道成功率（�?4日）
        $route->get('/recharge/pay_channel_rate', 'Admin\RechargeController@payChannelRate');


        /* 渠道管理*/

        $route->any('/channel/channel_new', 'Admin\ChannelController@channelNew');

        $route->any('/channel/quick_create_channel', 'Admin\ChannelController@quickCreateChannel');

        $route->get('/channel/list', 'Admin\ChannelController@index');
        $route->any('/channel/channel_add', 'Admin\ChannelController@channelAdd');
        $route->any('/channel/channel_edit/{id}', 'Admin\ChannelController@channelEdit');
        $route->any('/channel/update/{id}', 'Admin\ChannelController@update');
        $route->any('/channel/switch/{id}', 'Admin\ChannelController@switch_control');
        $route->any('/channel/channel_switch/{id}', 'Admin\ChannelController@channel_switch');
        $route->get('/channel/channel_save_log', 'Admin\ChannelController@ChannelSaveLog');
        $route->get('/channel/channel_shield_id_white', 'Admin\ChannelController@ChannelShieldIDWhite');
        $route->any('/channel/channel_shield_id_white_add', 'Admin\ChannelController@add');
        $route->any('/channel/channel_shield_id_white_edit/{id}', 'Admin\ChannelController@edit');
        $route->post('/channel/channel_shield_id_white_del/{id}', 'Admin\ChannelController@del');
        $route->post('/channel/channel_shield_id_white_update_state', 'Admin\ChannelController@updateState');

        $route->any('/channel/recharge_game', 'Admin\ChannelController@rechargeGame');
        $route->any('/channel/open_games/{id}', 'Admin\ChannelController@OpenGames');
        $route->any('/channel/open_recharge/{id}', 'Admin\ChannelController@OpenRecharge');
        $route->any('/channel/remarks/{id}', 'Admin\ChannelController@remarks');
        $route->any('/channel/appkey/{id}', 'Admin\ChannelController@appkey');
        $route->any('/channel/review/{id}', 'Admin\ChannelController@review');
        $route->any('/channel/shareUrl/{id}', 'Admin\ChannelController@shareUrl'); // 分享url
        $route->any('/channel/withdrawal_config/{channel}', 'Admin\ChannelController@withdrawalConfig');
        $route->any('/channel/withdrawal_configall', 'Admin\ChannelController@withdrawalConfigAll');
        $route->any('/channel/withdrawal_switch', 'Admin\ChannelController@withdrawalSwitch');
        $route->any('/channel/share_config/{id}', 'Admin\ChannelController@shareConfig');
        $route->any('/channel/app_key_set/{id}', 'Admin\ChannelController@app_key_set');
        $route->any('/channel/pay_methods/{channel}', 'Admin\ChannelController@payMethods');
        $route->any('/channel/update_pay_config/{channel}', 'Admin\ChannelController@updatePayConfig');

        //用户管理
        $route->get('/user/excel/', 'Admin\UserController@downExcel');
        $route->get('/user/list/', 'Admin\UserController@userList');

        $route->get('/user/list/', 'Admin\UserController@userLost');

        $route->get('/user/classify', 'Admin\UserController@userClassify');
        $route->get('/user/purchase/{id}', 'Admin\UserController@purchaseHistoryList');
        $route->get('/user/game/{id}', 'Admin\UserController@gameHistoryList');
        $route->get('/user/score/{id}', 'Admin\UserController@scoreHistoryList');
//        $route->get('/user/score/{id}','Admin\UserController@scoreHistoryList');
        $route->get('/user/card/{id}', 'Admin\UserController@cardHistoryList');
        $route->post('/user/freeze/{id}', 'Admin\UserController@freezeUser');
        $route->get('/user/vip_classify', 'Admin\UserController@VipClassify');//VIP等级分布
        $route->get('/user/checker', 'Admin\UserController@checkersList');
        $route->get('/user/create_hexiao', 'Admin\UserController@createHexiao');
        $route->post('/user/create_hexiao', 'Admin\UserController@createHexiao');
        $route->get('/user/spreader', 'Admin\UserController@userSpreaderList');
        $route->get('/user/spreader/everyday/{id}', 'Admin\UserController@everydaySpreaderList');
        $route->get('/user/spreader/subordinate/{id}', 'Admin\UserController@subordinateList');
        $route->get('/user/verif', 'Admin\UserController@verificationList');
        $route->get('/user/score_change', 'Admin\UserController@scoreChange');
        $route->get('/user/bind_list', 'Admin\UserController@bind_list');
        $route->post('/user/user_tab/{id}', 'Admin\UserController@user_tab');
        $route->get('/user/daily_binding', 'Admin\UserController@dailyBinding');
        $route->any('/user/money_deviation', 'Admin\UserController@moneyDeviation');


        // 投放渠道管理
        $route->get('/web_channel_config/list', 'Admin\WebChannelConfigController@index');
        $route->get('/web_channel_config/add', 'Admin\WebChannelConfigController@create');
        $route->post('/web_channel_config/add', 'Admin\WebChannelConfigController@store');
        $route->get('/web_channel_config/update/{id}', 'Admin\WebChannelConfigController@edit');
        $route->post('/web_channel_config/update/{id}', 'Admin\WebChannelConfigController@update');
        $route->post('/web_channel_config/del/{id}', 'Admin\WebChannelConfigController@destroy');

        // 虚拟分区配置查看
        $route->get('/web_region_config/list', 'Admin\WebRegionConfigController@index');

        $route->any('/web_region_config/edit/{id}', 'Admin\WebRegionConfigController@edit');

        // 主�?�配�?管理
        $route->get('/web_theme_config', 'Admin\WebThemeConfigController@index');
        $route->any('/web_theme_config/add', 'Admin\WebThemeConfigController@add');
        $route->any('/web_theme_config/edit/{id}', 'Admin\WebThemeConfigController@edit');
        $route->post('/web_theme_config/delete/{id}', 'Admin\WebThemeConfigController@delete');

        // Banner管理
        $route->get('/banner', 'Admin\BannerController@index');
        $route->any('/banner/add', 'Admin\BannerController@add');
        $route->any('/banner/edit/{id}', 'Admin\BannerController@edit');
        $route->post('/banner/delete/{id}', 'Admin\BannerController@delete');
        $route->post('/banner/sync/{id}', 'Admin\BannerController@sync');



        //实时数据
        $route->get('/livedata/gameinfo', 'Admin\LiveDataController@gameInfo');
        $route->get('/livedata/goldinfo', 'Admin\LiveDataController@goldInfo');
        $route->get('/livedata/online_player', 'Admin\LiveDataController@OnlinePlayer');
        //房卡管理
        $route->get('/card/statistics', 'Admin\CardController@statisticsList');
        $route->get('/card/friends', 'Admin\CardController@friendsList');
        $route->get('/card/game/record', 'Admin\CardController@gameRecordList');
        $route->get('/card/game/result', 'Admin\CardController@gameResultList');
        $route->get('/card/game/score', 'Admin\CardController@allScoreList');
        $route->get('/card/friends/members/{id}', 'Admin\CardController@membersList');
        $route->get('/card/friends/detail', 'Admin\CardController@friendsDetail');
        $route->get('/card/game/log', 'Admin\CardController@gameLogList');
        $route->get('/card/give', 'Admin\CardController@giveCardView');
        $route->post('/card/give', 'Admin\CardController@giveCard');
        $route->get('/card/give/record', 'Admin\CardController@giveCardRecordView');
        //金币场�?�理
        $route->get('/gold/recharge', 'Admin\GoldController@rechargeList');
        $route->get('/gold/gold', 'Admin\GoldController@goldList');
        $route->get('/gold/user', 'Admin\GoldController@userList');
        $route->get('/gold/game', 'Admin\GoldController@gameLogList');
        $route->get('/gold/gameconfig', 'Admin\GoldController@gameConfigList');
        $route->get('/gold/demo_gameconfig', 'Admin\GoldController@demo_gameconfig');
        $route->post('/gold/roomlist', 'Admin\GoldController@room_list');
        $route->get('/gold/gameconfig/update/{id}', 'Admin\GoldController@gameConfigUpdateView');
        $route->post('/gold/gameconfig/update/{id}', 'Admin\GoldController@gameConfigUpdate');
        $route->get('/gold/fishstock', 'Admin\GoldController@fishStock');
        $route->get('/gold/everyday', 'Admin\GoldController@goldEverydayList');
        $route->get('/gold/fishlist', 'Admin\GoldController@fishList');
        $route->get('/gold/operate', 'Admin\GoldController@operateList');
        $route->get('/gold/operate_detail/{id}', 'Admin\GoldController@operateDetail');
        $route->post('/gold/sync_stock/{id}', 'Admin\GoldController@sync_stock');
        $route->get('/gold/service_data', 'Admin\RoomServiceController@service_data');
        $route->get('/gold/service_data/show/{id}', 'Admin\RoomServiceController@show');
        $route->any('/gold/update_stock/{id}', 'Admin\GoldController@update_stock');
        $route->any('/gold/update_stock_log', 'Admin\GoldController@update_stock_log');


        //�?件�?�理
        $route->get('/mail/list', 'Admin\MailController@mailList');
        $route->get('/mail/add', 'Admin\MailController@mailAddView');
        $route->post('/mail/add', 'Admin\MailController@mailAdd');
        $route->get('/recharge/record', 'Admin\MailController@mailRecord');
        $route->get('/recharge/back_record', 'Admin\MailController@back_mailRecord');


        //代理管理
        $route->get('/subordinate/list/', 'Admin\SubordinateController@subordinateList');
        $route->get('/subordinate/add/', 'Admin\SubordinateController@addSubView');
        $route->post('/subordinate/add/', 'Admin\SubordinateController@addSub');
        $route->get('/subordinate/setcommission/{id}', 'Admin\SubordinateController@setCommissionView');
        $route->post('/subordinate/setcommission/{id}', 'Admin\SubordinateController@setCommission');

        /******** 客服系统管理 *************/

        //用户列表
        $route->any('/custom/my_list', 'Admin\CustomController@userListNew');

        $route->any('/custom/user_list', 'Admin\CustomController@userListAll');

        //$route->any('/custom/my_list', 'Admin\CustomController@userListNew');

        $route->post('/custom/callback', 'Admin\CustomController@getCallBack');


        $route->any('/custom/follow/{id}', 'Admin\CustomController@follow');
        $route->post('/custom/follow_add', 'Admin\CustomController@followAdd');

        $route->post('/custom/send_mail/{id}', 'Admin\CustomController@sendCallbackMail');



        /*            房间控制管理            */
        //房间实时数据
        $route->any('/global/room', 'Admin\GlobalController@room');
        $route->any('/global/update', 'Admin\GlobalController@update')->defaults('name', '游戏房间关闭');
        $route->any('/global/show_config/{id}', 'Admin\GlobalController@show_config');
        /*             用户管理             */
        //用户列表
        $route->any('/global/userlist', 'Admin\GlobalController@userlist');
        $route->any('/global/user_new_list', 'Admin\GlobalController@userNewList');
        $route->any('/global/recharge_rank', 'Admin\GlobalController@rechargeRank');
        //用户列表 �?改�?�图页面
        $route->any('/global/user_update', 'Admin\GlobalController@user_update');
        //用户列表 封号，解封操�?
        $route->post('/global/ban', 'Admin\GlobalController@ban')->defaults('name', '用户管理-封号 / 解封');
        //用户列表 radio 筛�?
        $route->get('global/rad', 'Admin\GlobalController@rad');
        //用户列表 点ID 跳转页面
        $route->get('global/id_find', 'Admin\GlobalController@id_find');
        $route->any('global/add_draw_base/{id}', 'Admin\GlobalController@add_draw_base');
        $route->any('global/add_tax/{id}', 'Admin\GlobalController@add_tax');

        $route->any('global/force_stock_mode/{id}', 'Admin\GlobalController@force_stock_mode');

        //用户列表 关联姓名 设�?? IP
        $route->get('global/join', 'Admin\GlobalController@join');
        //用户列表-用户单控系统
        $route->get('global/dk', 'Admin\GlobalController@dk');
        //用户列表-用户单控系统-详细列表用户
        $route->any('global/dk_userlist', 'Admin\GlobalController@dk_userlist');
        //用户列表-用户单控系统-详细列表用户�?改页�?
        $route->any('global/dk_userlist_edit', 'Admin\GlobalController@dk_userlist_edit');
        // 用户列表-用户单控系统-取消单控
        $route->post('global/cancel_dk', 'Admin\GlobalController@cancel_dk');
        $route->get('global/online_user', 'Admin\GlobalController@online_user');
        $route->get('global/game_room_switch', 'Admin\GlobalController@GameRoomSwitch_view');
        $route->post('global/game_room_switch', 'Admin\GlobalController@GameRoomSwitch');
        $route->post('global/remarks/{id}', 'Admin\GlobalController@remarks');
        $route->any('global/androidCheck', 'Admin\GlobalController@androidCheck');
        $route->any('global/AgentCommisionState', 'Admin\GlobalController@AgentCommisionState');
        $route->any('global/agent_reward', 'Admin\GlobalController@agent_reward');
        $route->any('global/head_audit', 'Admin\GlobalController@headAudit');
        $route->any('global/head_audit_update/{id}', 'Admin\GlobalController@headAuditUpdate');

        $route->any('global/user_search', 'Admin\GlobalController@user_search');
        /*            报表管理               */
        //全局报表
        $route->any('/global/report', 'Admin\GlobalController@index');

        //全局报表
        $route->any('/global/platform_record', 'Admin\GlobalController@platformRecord');

        $route->any('/global/sub_detail/{id}', 'Admin\GlobalController@platformSub');

        //输赢报表
        $route->any('/global/winloser', 'Admin\GlobalController@winloser');
        // 查看战绩
        $route->any('/global/game_record', 'Admin\GlobalController@game_record');
        //推广员�?�励报表
        $route->any('/global/reward', 'Admin\GlobalController@reward');
        $route->any('/global/user_source', 'Admin\GlobalController@userSource');


        // 查看对局信息
        $route->any('/global/match_information/{id}', 'Admin\GlobalController@match_information');
        $route->any('/global/close_cash/{id}', 'Admin\GlobalController@close_cash');
        $route->any('/global/relieve/{id}', 'Admin\GlobalController@relieve');
        $route->any('/global/update_label/{id}', 'Admin\GlobalController@update_label');
        $route->any('/global/deleteRoom/{id}', 'Admin\GlobalController@deleteRoom');
        $route->any('/global/control_statistics', 'Admin\GlobalController@control_statistics');
        $route->any('/global/register_invite_switches/{id}', 'Admin\GlobalController@register_invite_switches');


        // 单控配置模板
        $route->any('/Control/ControlConfig', 'Admin\ControlController@ControlConfig');
        $route->any('/Control/ControlConfig_add', 'Admin\ControlController@ControlConfig_add');
        $route->any('/Control/ControlConfig_update/{id}', 'Admin\ControlController@ControlConfig_update');
        $route->any('/Control/getConfig', 'Admin\ControlController@getConfig');
        $route->any('/Control/gradeChange/{id}', 'Admin\ControlController@gradeChange');
        $route->any('/Control/ControlConfigGear', 'Admin\ControlController@ControlConfigGear');
        $route->any('/Control/ControlConfigGearAdd', 'Admin\ControlController@ControlConfigGearAdd');
        $route->any('/Control/fish_add/{id}', 'Admin\ControlController@fish_add');
        $route->get('/Control/control_config_info', 'Admin\ControlController@control_config_info');
        $route->any('/Control/control_config_info_update/{id}', 'Admin\ControlController@control_config_info_update');

        // 保护配置管理
        $route->get('/Protect/protect_config_info', 'Admin\ProtectController@protect_config_info');
        $route->any('/Protect/protect_config_info_update/{id}', 'Admin\ProtectController@protect_config_info_update');
        $route->get('/Protect/free_protect_config', 'Admin\ProtectController@free_protect_config');
        $route->any('/Protect/free_protect_config_update', 'Admin\ProtectController@free_protect_config_update');


        /* 系统设置  IP白名单�?�理*/
        // 列表
        $route->get('/IpWhiteList/list', 'Admin\IpWhiteListController@index')->defaults('name', 'IP白名单列�?');
        $route->get('/login_ip/list', 'Admin\IpWhiteListController@login_ip');
        $route->get('/IpWhiteList/add', 'Admin\IpWhiteListController@add_view');
        $route->post('/IpWhiteList/add', 'Admin\IpWhiteListController@add')->defaults('name', 'IP白名单添加提�?');
        $route->get('/IpWhiteList/update/{id}', 'Admin\IpWhiteListController@update_view');
        $route->post('/IpWhiteList/update', 'Admin\IpWhiteListController@update')->defaults('name', 'IP白名单修改提�?');
        $route->post('/IpWhiteList/del/{id}', 'Admin\IpWhiteListController@del')->defaults('name', 'IP白名单删�?');

        //日志
        $route->get('/admin_log/list', 'Admin\AdminLogController@index');
        $route->get('/admin_log/show/{id}', 'Admin\AdminLogController@show');

        // 提现订单管理
        $route->any('/withdrawal/resetstate', 'Admin\WithdrawalController@state5List');
        $route->any('/withdrawal/resetstate/{id}', 'Admin\WithdrawalController@state5List');
        $route->get('/withdrawal/waitWithdrawal', 'Admin\WithdrawalController@waitWithdrawal');
        $route->get('/withdrawal/waitWithdrawalNewPlayer', 'Admin\WithdrawalController@waitWithdrawalNewPlayer');
        $route->any('/withdrawal/switchCs', 'Admin\WithdrawalController@changeNewWithdrawOpen');
        $route->get('/withdrawal/verify', 'Admin\WithdrawalController@verify');
        $route->post('/withdrawal/verify', 'Admin\WithdrawalController@verify');
        $route->get('/withdrawal/list', 'Admin\WithdrawalController@verify_finish');
        //$route->get('/withdrawal/','Admin\WithdrawalController@verify_finish');
        $route->get('/withdrawal/config', 'Admin\WithdrawalController@config');
        $route->any('/withdrawal/proportion', 'Admin\WithdrawalController@proportion');
        $route->any('/withdrawal/artificial', 'Admin\WithdrawalController@artificial');
        $route->any('/withdrawal/fee', 'Admin\WithdrawalController@fee');
        $route->any('/withdrawal/WithDrawPoint', 'Admin\WithdrawalController@WithDrawPoint');
        $route->get('/withdrawal/show/{id}', 'Admin\WithdrawalController@show');
        $route->get('/withdrawal/show/{id}', 'Admin\WithdrawalController@show');
        $route->any('/withdrawal/WithDrawMax', 'Admin\WithdrawalController@WithDrawMax');
        $route->any('/withdrawal/MaxTXNotRecharge', 'Admin\WithdrawalController@MaxTXNotRecharge');
        $route->any('/withdrawal/WithDrawMin', 'Admin\WithdrawalController@WithDrawMin');
        $route->any('/withdrawal/risk_assessment/{id}', 'Admin\WithdrawalController@risk_assessment');
        $route->post('/withdrawal/remarks/{id}', 'Admin\WithdrawalController@remarks');
        $route->get('/withdrawal/duplicate_checking', 'Admin\WithdrawalController@duplicate_checking');
        $route->post('/withdrawal/recovery/{id}', 'Admin\WithdrawalController@recovery');
        $route->get('/withdrawal/exempt_review', 'Admin\WithdrawalController@exempt_review');
        $route->any('/withdrawal/exempt_review_add', 'Admin\WithdrawalController@exempt_review_add');
        $route->any('/withdrawal/exempt_review_update/{id}', 'Admin\WithdrawalController@exempt_review_update');
        $route->any('/withdrawal/cashier_channel_config', 'Admin\WithdrawalController@cashier_channel_config');
        $route->any('/withdrawal/cashier_channel_add', 'Admin\WithdrawalController@cashier_channel_add');
        $route->any('/withdrawal/cashier_channel_update/{id}', 'Admin\WithdrawalController@cashier_channel_update');
        $route->any('/withdrawal/block/{id}', 'Admin\WithdrawalController@block');
        $route->any('/withdrawal/locking/{id}', 'Admin\WithdrawalController@locking');
        $route->any('/withdrawal/turn_down', 'Admin\WithdrawalController@turn_down');
        $route->any('/withdrawal/userWithdrawalStatistics', 'Admin\WithdrawalController@userWithdrawalStatistics');
        $route->any('/withdrawal/compensate_notify/{RecordID}', 'Admin\WithdrawalController@compensateNotify');
        $route->any('/withdrawal/init_data/{RecordID}', 'Admin\WithdrawalController@initData');
        $route->any('/withdrawal/sync_account_info/{RecordID}', 'Admin\WithdrawalController@syncAccountInfo');
        $route->get('/withdrawal/get_account_info/{RecordID}', 'Admin\WithdrawalController@getAccountInfo');
        $route->post('/withdrawal/update_account_info/{RecordID}', 'Admin\WithdrawalController@updateAccountInfo');
        $route->any('/withdrawal/monitor_order_fail_call/{OrderID}', 'Admin\WithdrawalController@monitorOrderFailCall');
        $route->any('/withdrawal/draw_base_change_log', 'Admin\WithdrawalController@drawBaseChangeLog');

        $route->get('/withdraw/rank', 'Admin\WithdrawalController@withdrawRank');
        $route->get('/withdraw/names', 'Admin\WithdrawalController@nameStatics');


        // �?人池配置
        $route->any('/recharge_control_config/index', 'Admin\RechargeControlConfigController@index');
        $route->any('/recharge_control_config/add', 'Admin\RechargeControlConfigController@add');
        $route->any('/recharge_control_config/update/{id}', 'Admin\RechargeControlConfigController@update');
        $route->post('/recharge_control_config/del/{id}', 'Admin\RechargeControlConfigController@del');
        $route->post('/recharge_control_config/switch/{id}', 'Admin\RechargeControlConfigController@switch');

        $route->any('/config/halloween', 'Admin\ConfigController@Halloween');
        $route->any('/config/fruit9x', 'Admin\ConfigController@Fruit9x');


        /*彩金控制*/
        $route->any('/lottery/control', 'Admin\LotteryController@index');

        /*单控操作记录*/
        $route->any('/control/record', 'Admin\ControlRecordController@index');
        //  单控池监�?
        $route->any('/control/monitor', 'Admin\ControlRecordController@monitor');
        $route->any('/group_control/record', 'Admin\GroupControlRecordController@record');
        $route->get('/group_control/show_config/{id}', 'Admin\GroupControlRecordController@show_config');
        $route->get('/control/show_control_log/{id}', 'Admin\ControlRecordController@show_control_log');
        $route->get('/group_control/control', 'Admin\GroupControlRecordController@control');
        $route->get('/group_control/show_control_config/{id}', 'Admin\GroupControlRecordController@show_control_config');
        $route->any('/group_control/control_add/{id}', 'Admin\GroupControlRecordController@control_add');
        $route->any('/group_control/control_update/{id}', 'Admin\GroupControlRecordController@control_update');
        $route->any('/group_control/control_del/{id}', 'Admin\GroupControlRecordController@control_del');
        $route->any('/group_control/control_updateStatus/{id}', 'Admin\GroupControlRecordController@control_updateStatus');
        $route->any('/group_control/sync_res/{id}', 'Admin\GroupControlRecordController@sync_res');
        $route->any('/group_control/roomList', 'Admin\GroupControlRecordController@roomList');
        $route->any('/group_control/room', 'Admin\GroupControlRecordController@room');
        $route->any('/group_control/room_add', 'Admin\GroupControlRecordController@room_add');
        $route->any('/group_control/room_update/{id}', 'Admin\GroupControlRecordController@room_update');
        $route->any('/group_control/award_allocation', 'Admin\GroupControlRecordController@award_allocation');
        $route->any('/group_control/award_allocation_add', 'Admin\GroupControlRecordController@award_allocation_add');
        $route->any('/group_control/award_allocation_update', 'Admin\GroupControlRecordController@award_allocation_update');
        $route->any('/group_control/award_allocation_del/{id}', 'Admin\GroupControlRecordController@award_allocation_del');
        $route->any('/group_control/gemstone', 'Admin\GroupControlRecordController@gemstone');
        $route->any('/group_control/gemstone_update', 'Admin\GroupControlRecordController@gemstone_update');
        $route->any('/group_control/LuckyGemstoneMul', 'Admin\GroupControlRecordController@LuckyGemstoneMul');
        $route->any('/group_control/LuckyGemstoneMul_update', 'Admin\GroupControlRecordController@LuckyGemstoneMul_update');

        /*用户标�??*/
        $route->get('/user_tags/index', 'Admin\UserTagsController@index');

        // 库存变化曲线
        $route->get('/stock/change', 'Admin\StockController@index');
        $route->get('/stock/room_list', 'Admin\StockController@roomList');


        /*数据统�?�新后台*/
        // 用户行为 -- 埋点数据
        $route->get('/burying_point/index', 'Admin\BuryingPointController@index');
        $route->get('/burying_point/weight', 'Admin\BuryingPointController@weight');
        $route->post('/burying_point/update/{id}', 'Admin\BuryingPointController@update');

        // 玩�?�输赢排行�??
//        $route->get('/data_analy/score', 'Admin\DataAnalysisController@data_analy');
        // 数据统�?��?�理
//        $route->get('/game/room', 'Admin\GamesController@room');


        // 返水活动
        $route->get('/return_water/config', 'Admin\ReturnWaterController@config');
        $route->any('/return_water/update/{id}', 'Admin\ReturnWaterController@update');
        $route->any('/return_water/gear', 'Admin\ReturnWaterController@gear');
        $route->any('/return_water/gear_add', 'Admin\ReturnWaterController@gear_add');
        $route->any('/return_water/gear_update/{id}', 'Admin\ReturnWaterController@gear_update');
        $route->any('/return_water/gear_status/{id}', 'Admin\ReturnWaterController@gear_status');
        $route->any('/return_water/total_switch', 'Admin\ReturnWaterController@totalSwitch');

        // 签到
        $route->get('/sign_in/index', 'Admin\SignInController@index');

        $route->any('/system_status_info/customer_service', 'Admin\SystemStatusInfoController@customer_service');
        $route->any('/system_status_info/high_customer_service', 'Admin\SystemStatusInfoController@high_customer_service');

        $route->any('/chart/dashboard', 'Admin\ChartController@dashboard');


        // �?信通道切换开�?
        $route->any('/sys_sms_config/index', 'Admin\SysSmsConfigController@index');
        $route->any('/sys_sms_config/update_status/{id}', 'Admin\SysSmsConfigController@updateStatus');
        $route->any('/sys_sms_config/remarks/{id}', 'Admin\SysSmsConfigController@Remarks');
        $route->any('/sys_sms_config/update/{id}', 'Admin\SysSmsConfigController@Update');

        // 裂变需�?
        $route->any('/extension/verify', 'Admin\ExtensionController@verify');
        $route->any('/extension/verify_update/{id}', 'Admin\ExtensionController@verify_update');
        $route->any('/extension/register_config', 'Admin\ExtensionController@register_config');
        $route->any('/extension/register_config_add', 'Admin\ExtensionController@register_config_add');
        $route->any('/extension/register_config_update/{id}', 'Admin\ExtensionController@register_config_update');
        $route->any('/extension/upper_limit', 'Admin\ExtensionController@upperLimit');
        $route->any('/extension/verify_score', 'Admin\ExtensionController@verifyScore');
        $route->any('/extension/user_source', 'Admin\ExtensionController@userSource');
        $route->any('/extension/verify_final', 'Admin\ExtensionController@verifyFinal');
        $route->any('/extension/verify_remarks/{id}', 'Admin\ExtensionController@verifyRemarks');
        $route->any('/extension/verify_final_remarks/{id}', 'Admin\ExtensionController@verifyFinalRemarks');
        $route->any('/extension/gamecount_config', 'Admin\ExtensionController@gameCountConfig');
        $route->any('/extension/gamecount_config_add', 'Admin\ExtensionController@gameCountConfig_add');
        $route->any('/extension/gamecount_config_update/{id}', 'Admin\ExtensionController@gameCountConfig_update');
        $route->any('/extension/gamecount_limit', 'Admin\ExtensionController@gameCountLimit');
        // 彩金�?动�?�核开�?
        $route->any('/extension/auto_verify', 'Admin\ExtensionController@autoVerify');
        $route->any('/extension/recharge_rate', 'Admin\ExtensionController@recharge_rate');


        // 新代理系统�?�理�?�?
        $route->any('/extension_new/verify', 'Admin\ExtensionNewController@verify')->name('admin.extension_new.verify');
        $route->any('/extension_new/verify_update/{id}', 'Admin\ExtensionNewController@verify_update')->name('admin.extension_new.verify_update');
        $route->any('/extension_new/register_config', 'Admin\ExtensionNewController@register_config')->name('admin.extension_new.register_config');
        $route->any('/extension_new/register_config_add', 'Admin\ExtensionNewController@register_config_add')->name('admin.extension_new.register_config_add');
        $route->any('/extension_new/register_config_update/{id}', 'Admin\ExtensionNewController@register_config_update')->name('admin.extension_new.register_config_update');
        $route->any('/extension_new/upper_limit', 'Admin\ExtensionNewController@upperLimit')->name('admin.extension_new.upper_limit');
        $route->any('/extension_new/verify_score', 'Admin\ExtensionNewController@verifyScore')->name('admin.extension_new.verify_score');
        $route->any('/extension_new/user_source', 'Admin\ExtensionNewController@userSource')->name('admin.extension_new.user_source');
        $route->any('/extension_new/verify_final', 'Admin\ExtensionNewController@verifyFinal')->name('admin.extension_new.verify_final');
        $route->any('/extension_new/verify_remarks/{id}', 'Admin\ExtensionNewController@verifyRemarks')->name('admin.extension_new.verify_remarks');
        $route->any('/extension_new/verify_final_remarks/{id}', 'Admin\ExtensionNewController@verifyFinalRemarks')->name('admin.extension_new.verify_final_remarks');
        $route->any('/extension_new/gamecount_config', 'Admin\ExtensionNewController@gameCountConfig')->name('admin.extension_new.gamecount_config');
        $route->any('/extension_new/gamecount_config_add', 'Admin\ExtensionNewController@gameCountConfig_add')->name('admin.extension_new.gamecount_config_add');
        $route->any('/extension_new/gamecount_config_update/{id}', 'Admin\ExtensionNewController@gameCountConfig_update')->name('admin.extension_new.gamecount_config_update');
        $route->any('/extension_new/gamecount_limit', 'Admin\ExtensionNewController@gameCountLimit')->name('admin.extension_new.gamecount_limit');
        // 彩金�?动�?�核开�?
        $route->any('/extension_new/auto_verify', 'Admin\ExtensionNewController@autoVerify')->name('admin.extension_new.auto_verify');
        $route->any('/extension_new/recharge_rate', 'Admin\ExtensionNewController@recharge_rate')->name('admin.extension_new.recharge_rate');
        // 绑定关系查�??
        $route->any('/extension_new/daily_binding', 'Admin\ExtensionNewController@dailyBinding')->name('admin.extension_new.daily_binding');
        $route->any('/extension_new/reward', 'Admin\ExtensionNewController@reward')->name('admin.extension_new.reward');
        $route->any('/extension_new/bind_list', 'Admin\ExtensionNewController@bind_list')->name('admin.extension_new.bind_list');
        $route->any('/extension_new/subordinate', 'Admin\ExtensionNewController@subordinate');


        $route->any('/version/del_version', 'Admin\VersionController@delVersion');

        // 彩金池操�?
        $route->any('/winnings/operate', 'Admin\WinningsController@operate');
        $route->any('/winnings/update/{id}', 'Admin\WinningsController@update');

        // 验证码查�?+手机号手动绑�?
        $route->any('/code/query', 'Admin\CodeController@query');
        $route->any('/code/bind_phone/{id}', 'Admin\CodeController@bind_phone');

        // crash控制参数配置
        $route->any('/crash/config', 'Admin\CrashController@operate');
        $route->any('/crash/config_update/{id}', 'Admin\CrashController@config_update');
        // crash控制参数配置
        $route->any('/aviator/config', 'Admin\CrashController@aviator_operate');
        $route->any('/aviator/config_update/{id}', 'Admin\CrashController@aviator_config_update');
        // crash控制参数配置
        $route->any('/aviator2/config', 'Admin\CrashController@aviator2_operate');
        $route->any('/aviator2/config_update/{id}', 'Admin\CrashController@aviator2_config_update');

        // ClearBomb 控制参数配置
        $route->any('/clearBomb/config', 'Admin\ClearBombController@operate');
        $route->any('/clearBomb/config_update/{id}', 'Admin\ClearBombController@config_update');

        // 拉霸世界�? 控制参数配置
        $route->any('/slots_world_cup/config', 'Admin\SlotsWorldCupController@operate');
        $route->any('/slots_world_cup/config_update/{id}', 'Admin\SlotsWorldCupController@config_update');

        // joker5x1 控制参数配置
        $route->any('/master_joker/config', 'Admin\ConfigController@Joker5x1');
        $route->any('/fortune_tiger/config', 'Admin\ConfigController@FortuneTiger');
        $route->any('/fortune_ox/config', 'Admin\ConfigController@FortuneOX');
        $route->any('/fishing/config', 'Admin\ConfigController@FishingPlus');

        $route->any('/config/newoly', 'Admin\ConfigController@newolympusSlot');
        $route->any('/rabbit/config', 'Admin\ConfigController@FortuneRabbit');
        $route->any('/aztec/config', 'Admin\ConfigController@Aztec');


        $route->any('/zeus/config', 'Admin\ZeusController@operate');
        $route->any('/zeus/config_update/{id}', 'Admin\ZeusController@config_update');

        $route->any('/athena/config', 'Admin\AthenaController@operate');
        $route->any('/athena/config_update/{id}', 'Admin\AthenaController@config_update');

        // 开关�?�理
        $route->any('/switches', 'Admin\SwitchesController@index');
        $route->any('/switches/set_status/{id}', 'Admin\SwitchesController@setStatus');

        // 黑名�?
        $route->any('/blacklist', 'Admin\BlacklistController@index');
        $route->any('/blacklist/config/{id}', 'Admin\BlacklistController@config');
        $route->any('/blacklist/add/{UserID}', 'Admin\BlacklistController@add');
        $route->any('/blacklist/remove/{UserID}', 'Admin\BlacklistController@remove');
        $route->any('/blacklist/history', 'Admin\BlacklistController@history');

        $route->any('/config/treasure_slot', 'Admin\ConfigController@treasureSlot');
        $route->any('/config/game_config_update/{key}', 'Admin\ConfigController@gameConfigUpdate');
        $route->any('/config/light_slot', 'Admin\ConfigController@LightSlot');
        $route->any('/config/hive', 'Admin\ConfigController@Hive');

        $route->get('/game/user/online_list','Admin\GameDataController@onlineList');

        $route->any('/game_data/rank','Admin\GameDataController@gameRankList');

        // 游戏输赢排�?��??
        $route->get('/game_data/winlose_rank', 'Admin\GameWinLoseRankController@index')->defaults('name', '游戏输赢排�?��??');

        $route->get('/game_enter_log/statistics', 'Admin\GameEnterLogController@statistics')->defaults('name', '进游戏时长统计');

        $route->any('/game_data/participation_statistics', 'Admin\GameDataController@gameParticipationStatistics')->defaults('name', '游戏参与情况统�??');


        // PG游戏参数配置
        $route->any('/pg-game-config', 'Admin\PGGameConfigController@index')->name('admin.pg-game-config');
        $route->any('/common-config', 'Admin\CommonConfigController@index')->name('admin.common-config');
        $route->any('/common-config/update', 'Admin\CommonConfigController@update')->name('admin.common-config.update');

        // 1234 权重配置 & 点击统�??
        $route->any('/weight-config', 'Admin\WeightConfigController@index')->name('admin.weight-config');
        $route->post('/weight-config/update', 'Admin\WeightConfigController@update')->name('admin.weight-config.update');
        $route->post('/weight-config/reset-stats', 'Admin\WeightConfigController@resetStats')->name('admin.weight-config.reset-stats');
        $route->any('/special-config', 'Admin\SpecialConfigController@index')->name('admin.special-config');
        $route->any('/special-config/update', 'Admin\SpecialConfigController@update')->name('admin.special-config.update');
        $route->any('/pg-game-config/update', 'Admin\PGGameConfigController@update')->name('admin.pg-game-config.update');
        $route->post('/pg-game-config/copy_all', 'Admin\PGGameConfigController@copyAll')->name('admin.pg-game-config.copy_all');
        
        // �?控回报配�?
        $route->any('/game-some-config', 'Admin\GameSomeConfigController@index')->name('admin.game-some-config');
        $route->post('/game-some-config/update', 'Admin\GameSomeConfigController@update')->name('admin.game-some-config.update');


        // 库存模式配置
        $route->any('/stock-mode', 'Admin\StockModeController@index')->name('admin.stock-mode');
        $route->post('/stock-mode/update-system-config', 'Admin\StockModeController@updateSystemConfig')->name('admin.stock-mode.update-system-config');
        $route->post('/stock-mode/update-room-stock', 'Admin\StockModeController@updateRoomStock')->name('admin.stock-mode.update-room-stock');
        $route->post('/stock-mode/update-stock', 'Admin\StockModeController@updateStock')->name('admin.stock-mode.update-stock');
        $route->get('/stock-mode/stats', 'Admin\StockModeController@getRoomStockStats')->name('admin.stock-mode.stats');
        $route->get('/stock-mode/snapshot-history', 'Admin\StockModeController@getSnapshotHistory')->name('admin.stock-mode.snapshot-history');


        // 游戏税收比例配置
        $route->any('/game-tax', 'Admin\GameTaxController@index')->name('admin.game-tax');
        $route->post('/game-tax/update', 'Admin\GameTaxController@update')->name('admin.game-tax.update');
        
        // 数字游戏映射管理
        $route->get('/game-number-mapping', 'Admin\GameNumberMappingController@index')->name('admin.game-number-mapping');
        $route->any('/game-number-mapping/add', 'Admin\GameNumberMappingController@add')->name('admin.game-number-mapping.add');
        $route->any('/game-number-mapping/update/{id}', 'Admin\GameNumberMappingController@update')->name('admin.game-number-mapping.update');
        $route->post('/game-number-mapping/delete/{id}', 'Admin\GameNumberMappingController@delete')->name('admin.game-number-mapping.delete');
        
        // 节假日大�?盘配�?
        $route->any('/holiday-wheel', 'Admin\HolidayWheelController@index')->name('admin.holiday-wheel');
        $route->post('/holiday-wheel/update', 'Admin\HolidayWheelController@update')->name('admin.holiday-wheel.update');
        $route->get('/holiday-wheel/history', 'Admin\HolidayWheelController@history')->name('admin.holiday-wheel.history');
        
        // 圣诞大转盘配�?
        $route->any('/christmas-wheel', 'Admin\ChristmasWheelController@index')->name('admin.christmas-wheel');
        $route->post('/christmas-wheel/update', 'Admin\ChristmasWheelController@update')->name('admin.christmas-wheel.update');
        $route->get('/christmas-wheel/history', 'Admin\ChristmasWheelController@history')->name('admin.christmas-wheel.history');
        
        // Bonus�?买回报配�?
        $route->any('/game-buy-bonus-config', 'Admin\GameBuyBonusConfigController@index')->name('admin.game-buy-bonus-config');
        $route->post('/game-buy-bonus-config/update', 'Admin\GameBuyBonusConfigController@update')->name('admin.game-buy-bonus-config.update');
        // PG游戏参数配置
        $route->any('/jl-game-config', 'Admin\JLGameConfigController@index')->name('admin.jl-game-config');
        $route->any('/jl-game-config/update', 'Admin\JLGameConfigController@update')->name('admin.jl-game-config.update');

        $route->post('/jl-game-config/copy_all', 'Admin\JLGameConfigController@copyAll')->name('admin.jl-game-config.copy_all');

        $route->any('/game_data/user_detail', 'Admin\GameDataController@userDetail');
        $route->any('/user_total/list', 'Admin\GameDataController@userTotalList');
        // vip 等级配置管理
        $route->get('/protect-level', 'Admin\ProtectLevelController@index');
        $route->any('/protect-level/add', 'Admin\ProtectLevelController@add');
        $route->any('/protect-level/edit/{id}', 'Admin\ProtectLevelController@edit');
        $route->post('/protect-level/delete/{id}', 'Admin\ProtectLevelController@delete');
        $route->post('/protect-level/save-config', 'Admin\ProtectLevelController@saveConfig');
    
        $route->any('/win_lose_rank', 'Admin\WinLoseRankController@index');
    });

});
Route::group([
    'middleware' => ['install.check', 'session.check'],
    'as' => 'base',
], function ($route) {
    //框架
    $route->get('admin/bx_nb', 'Admin\IndexController@index')->middleware(['check.role']);
    $route->get('admin/mex', 'Admin\IndexController@index')->middleware(['check.role']);
//    $route->get('/', 'Admin\IndexController@index')->middleware(['check.role']);
    //403无�?�问权限
    $route->get('403', 'Admin\IndexController@noPermission');
    //�?改个人信�?
    $route->get('edit/info/{id}', 'Admin\AdministratorController@editInfoView');
    $route->post('edit/info/{id}', 'Admin\AdministratorController@editInfo');
    //图片上传
    $route->post('admin/upload', 'Admin\IndexController@upload');
    $route->post('admin/wangeditor/upload', 'Admin\IndexController@wangeditorUpload');
    //退出登�?
    $route->get('logout', 'Admin\AdministratorController@logout');
});
Route::group([
//    'middleware' => ['install.check'],
    'as' => 'base',
], function ($route) {
//    game/admin_background/operate/login
    // 登录
    $route->get('admin/login_op', 'Admin\AdministratorController@login');
    $route->get('admin/login_captcha', 'Admin\AdministratorController@loginCaptcha');
    $route->post('admin/login_op', 'Admin\AdministratorController@checkLogin');
    $route->get('admin/login_mx', 'Admin\AdministratorController@login');
    $route->post('admin/login_mx', 'Admin\AdministratorController@checkLogin');

});

// 图标库（开发者用�?
Route::get('icon', function () {
    return view('admin.icon');
});
// 常用后台模板（开发者用�?
Route::get('tmp', function () {
    return view('admin.tmp');
});
// 安�?�向�?
//Route::get('install', 'InstallController@index')->name('installView');
//Route::post('install/1', 'InstallController@setEnviroment')->name('setEnviroment');
//Route::post('install/2', 'InstallController@startInstall')->name('startInstall');
//Route::get('admin/test', 'Admin\TestController@index')->defaults('key', '测试接口');
//Route::get('admin/test1', 'Admin\TestController@test');
//Route::get('admin/drawTest', 'Admin\TestController@drawTest');
//Route::get('admin/pay_test', 'Admin\PayTestController@pay');
//Route::get('admin/recovery', 'Admin\PayTestController@recovery');
//Route::get('admin/cash_notify', 'Admin\PayTestController@cashNotify');

// Evoplay游戏
Route::group([
    'middleware' => ['install.check', 'auth', 'check.role'],
], function ($route) {
    $route->get('/evoplay/game_lunch', 'Game\EvoplayController@gameLunch');
    $route->get('/evoplay/game_list', 'Game\EvoplayController@gameList');
});
