初始化
This commit is contained in:
344
addons/webman/config.php
Normal file
344
addons/webman/config.php
Normal file
@@ -0,0 +1,344 @@
|
||||
<?php
|
||||
|
||||
use addons\webman\middleware\AuthMiddleware;
|
||||
use addons\webman\middleware\LoadLangPack;
|
||||
use addons\webman\middleware\Permission;
|
||||
|
||||
return [
|
||||
'token' => [
|
||||
'driver' => \addons\webman\token\driver\Cache::class,
|
||||
//密钥
|
||||
'key' => 'QoYEClMJsgOSWUBkSCq26yWkApqSuH3',
|
||||
//token有效时长
|
||||
'expire' => null,
|
||||
//唯一登录
|
||||
'unique' => true,
|
||||
//验证字段
|
||||
'auth_field' => ['password'],
|
||||
|
||||
'model' => addons\webman\model\AdminUser::class,
|
||||
],
|
||||
//超级管理员id
|
||||
'admin_auth_id' => 1,
|
||||
|
||||
'request_interface' => [
|
||||
//ExAdmin\ui\contract\LoginAbstract
|
||||
'login' => addons\webman\common\Login::class,
|
||||
//ExAdmin\ui\contract\SystemAbstract
|
||||
'system' => addons\webman\common\System::class,
|
||||
],
|
||||
'grid' => [
|
||||
//ExAdmin\ui\Manager
|
||||
'manager' => addons\webman\grid\GridManager::class,
|
||||
],
|
||||
'form' => [
|
||||
//ExAdmin\ui\Manager
|
||||
'manager' => addons\webman\form\FormManager::class,
|
||||
//ExAdmin\ui\contract\ValidatorAbstract
|
||||
'validator' => addons\webman\form\Validator::class,
|
||||
//ExAdmin\ui\contract\UploaderAbstract
|
||||
'uploader' => addons\webman\form\Uploader::class,
|
||||
],
|
||||
'echart' => [
|
||||
//ExAdmin\ui\Manager
|
||||
'manager' => \addons\webman\echart\EchartManager::class,
|
||||
],
|
||||
'route' => [
|
||||
//路由前缀
|
||||
'prefix' => env('ADMIN_ROUTE_PREFIX', '/admin'),
|
||||
//中间件
|
||||
'middleware' => [
|
||||
AuthMiddleware::class,
|
||||
LoadLangPack::class,
|
||||
Permission::class,
|
||||
],
|
||||
],
|
||||
//菜单
|
||||
'menu' => \addons\webman\service\Menu::class,
|
||||
|
||||
//上传配置
|
||||
'upload' => [
|
||||
//config/filesystems.php
|
||||
'disk' => 'local',
|
||||
//保存目录
|
||||
'directory' => [
|
||||
'image' => 'images',
|
||||
'file' => 'files',
|
||||
],
|
||||
//禁止上传后缀
|
||||
'disabled_ext' => ['php']
|
||||
],
|
||||
//扫描权限目录
|
||||
'auth_scan' => [
|
||||
__DIR__ . '/controller',
|
||||
app_path("admin/controller")
|
||||
],
|
||||
'database' => [
|
||||
//用户表
|
||||
'user_table' => 'admin_users',
|
||||
'user_model' => addons\webman\model\AdminUser::class,
|
||||
//菜单表
|
||||
'menu_table' => 'admin_menus',
|
||||
'menu_model' => addons\webman\model\AdminMenu::class,
|
||||
//角色表
|
||||
'role_table' => 'admin_roles',
|
||||
'role_model' => addons\webman\model\AdminRole::class,
|
||||
//角色权限关联表
|
||||
'role_permission_table' => 'admin_role_permissions',
|
||||
'role_permission_model' => addons\webman\model\AdminRolePermission::class,
|
||||
//角色菜单关联表
|
||||
'role_menu_table' => 'admin_role_menus',
|
||||
'role_menu_model' => addons\webman\model\AdminRoleMenu::class,
|
||||
//角色用户关联表
|
||||
'role_user_table' => 'admin_role_users',
|
||||
'role_user_model' => addons\webman\model\AdminRoleUsers::class,
|
||||
//系统配置表
|
||||
'config_table' => 'admin_configs',
|
||||
'config_model' => addons\webman\model\AdminConfig::class,
|
||||
//系统附件分类表
|
||||
'attachment_cate_table' => 'admin_file_attachment_cates',
|
||||
'attachment_cate_model' => addons\webman\model\AdminFileAttachmentCate::class,
|
||||
//系统附件表
|
||||
'attachment_table' => 'admin_file_attachments',
|
||||
'attachment_model' => addons\webman\model\AdminFileAttachment::class,
|
||||
//部门表
|
||||
'department_table' => 'admin_department',
|
||||
'department_model' => addons\webman\model\AdminDepartment::class,
|
||||
//岗位表
|
||||
'post_table' => 'admin_post',
|
||||
'post_model' => addons\webman\model\AdminPost::class,
|
||||
//角色数据权限部门关联表
|
||||
'role_department_table' => 'admin_role_department',
|
||||
'role_department_model' => addons\webman\model\AdminRoleDepartment::class,
|
||||
//玩家表
|
||||
'player_table' => 'player',
|
||||
'player_model' => \addons\webman\model\Player::class,
|
||||
//玩家扩展表
|
||||
'player_extend_table' => 'player_extend',
|
||||
'player_extend_model' => \addons\webman\model\PlayerExtend::class,
|
||||
//平台
|
||||
'player_platform_cash_table' => 'player_platform_cash',
|
||||
'player_platform_cash_model' => \addons\webman\model\PlayerPlatformCash::class,
|
||||
//机台API记录
|
||||
'api_error_log_table' => 'api_error_log',
|
||||
'api_error_log_model' => \addons\webman\model\ApiErrorLog::class,
|
||||
//轮播图管理
|
||||
'slider_table' => 'slider',
|
||||
'slider_model' => \addons\webman\model\Slider::class,
|
||||
//玩家钱包编辑记录
|
||||
'player_money_edit_log_table' => 'player_money_edit_log',
|
||||
'player_money_edit_log_model' => \addons\webman\model\PlayerMoneyEditLog::class,
|
||||
//玩家资金记录
|
||||
'player_delivery_record_table' => 'player_delivery_record',
|
||||
'player_delivery_record_model' => \addons\webman\model\PlayerDeliveryRecord::class,
|
||||
//玩家登录记录
|
||||
'player_login_record_table' => 'player_login_record',
|
||||
'player_login_record_model' => \addons\webman\model\PlayerLoginRecord::class,
|
||||
//玩家注册记录
|
||||
'player_register_record_table' => 'player_register_record',
|
||||
'player_register_record_model' => \addons\webman\model\PlayerRegisterRecord::class,
|
||||
//机台游戏日志
|
||||
'system_setting_table' => 'system_setting',
|
||||
'system_setting_model' => \addons\webman\model\SystemSetting::class,
|
||||
//短信记录
|
||||
'phone_sms_log_table' => 'phone_sms_log',
|
||||
'phone_sms_log_model' => \addons\webman\model\PhoneSmsLog::class,
|
||||
//玩家充值记录
|
||||
'player_recharge_record_table' => 'player_recharge_record',
|
||||
'player_recharge_record_model' => \addons\webman\model\PlayerRechargeRecord::class,
|
||||
//玩家标签
|
||||
'player_tag_table' => 'player_tag',
|
||||
'player_tag_model' => \addons\webman\model\PlayerTag::class,
|
||||
//公告
|
||||
'announcement_table' => 'announcement',
|
||||
'announcement_model' => \addons\webman\model\Announcement::class,
|
||||
//公告内容
|
||||
'announcement_content_table' => 'announcement_content',
|
||||
'announcement_content_model' => \addons\webman\model\AnnouncementContent::class,
|
||||
//玩家提现
|
||||
'player_withdraw_record_table' => 'player_withdraw_record',
|
||||
'player_withdraw_record_model' => \addons\webman\model\PlayerWithdrawRecord::class,
|
||||
//渠道
|
||||
'channel_table' => 'channel',
|
||||
'channel_model' => \addons\webman\model\Channel::class,
|
||||
//货币
|
||||
'currency_table' => 'currency',
|
||||
'currency_model' => \addons\webman\model\Currency::class,
|
||||
//渠道充值方式
|
||||
'channel_recharge_method_table' => 'channel_recharge_method',
|
||||
'channel_recharge_method_model' => \addons\webman\model\ChannelRechargeMethod::class,
|
||||
//渠道充值方式多语言
|
||||
'channel_recharge_method_lang_table' => 'channel_recharge_method_lang',
|
||||
'channel_recharge_method_lang_model' => \addons\webman\model\ChannelRechargeMethodLang::class,
|
||||
//渠道充值配置
|
||||
'channel_recharge_setting_table' => 'channel_recharge_setting',
|
||||
'channel_recharge_setting_model' => \addons\webman\model\ChannelRechargeSetting::class,
|
||||
//财务操作记录
|
||||
'channel_financial_record_table' => 'channel_financial_record',
|
||||
'channel_financial_record_model' => \addons\webman\model\ChannelFinancialRecord::class,
|
||||
//玩家银行卡
|
||||
'player_bank_table' => 'player_bank',
|
||||
'player_bank_model' => \addons\webman\model\PlayerBank::class,
|
||||
//玩家银行卡
|
||||
'bank_list_table' => 'bank_list',
|
||||
'bank_list_model' => \addons\webman\model\BankList::class,
|
||||
//外部应用
|
||||
'external_app_table' => 'external_app',
|
||||
'external_app_model' => \addons\webman\model\ExternalApp::class,
|
||||
//玩家信息修改日志
|
||||
'player_edit_log_table' => 'player_edit_log',
|
||||
'player_edit_log_model' => \addons\webman\model\PlayerEditLog::class,
|
||||
//消息
|
||||
'notice_table' => 'notice',
|
||||
'notice_model' => \addons\webman\model\Notice::class,
|
||||
//签到记录
|
||||
'sign_ins_table' => 'sign_ins',
|
||||
'sign_ins_model' => \addons\webman\model\SignIns::class,
|
||||
//活动
|
||||
'activity_table' => 'activity',
|
||||
'activity_model' => \addons\webman\model\Activity::class,
|
||||
//活动内容
|
||||
'activity_content_table' => 'activity_content',
|
||||
'activity_content_model' => \addons\webman\model\ActivityContent::class,
|
||||
//分润记录
|
||||
'commission_record_table' => 'commission_record',
|
||||
'commission_record_model' => \addons\webman\model\CommissionRecord::class,
|
||||
//玩家打碼量記錄
|
||||
'player_chip_record_table' => 'player_chip_record',
|
||||
'player_chip_record_model' => \addons\webman\model\PlayerChipRecord::class,
|
||||
//游戏平台
|
||||
'game_platform_table' => 'game_platform',
|
||||
'game_platform_model' => \addons\webman\model\GamePlatform::class,
|
||||
//游戏平台
|
||||
'game_table' => 'game',
|
||||
'game_model' => \addons\webman\model\Game::class,
|
||||
//玩家游戏平台账号
|
||||
'player_game_platform_table' => 'player_game_platform',
|
||||
'player_game_platform_model' => \addons\webman\model\PlayerGamePlatform::class,
|
||||
//玩家钱包转出/入记录
|
||||
'player_wallet_transfer_table' => 'player_wallet_transfer',
|
||||
'player_wallet_transfer_model' => \addons\webman\model\PlayerWalletTransfer::class,
|
||||
//玩家游戏记录
|
||||
'play_game_record_table' => 'play_game_record',
|
||||
'play_game_record_model' => \addons\webman\model\PlayGameRecord::class,
|
||||
//玩家破产记录
|
||||
'player_bankruptcy_record_table' => 'player_bankruptcy_record',
|
||||
'player_bankruptcy_record_model' => \addons\webman\model\PlayerBankruptcyRecord::class,
|
||||
//APP版本管理
|
||||
'app_version_table' => 'app_version',
|
||||
'app_version_model' => \addons\webman\model\AppVersion::class,
|
||||
//玩家等级
|
||||
'player_level_table' => 'player_level',
|
||||
'player_level_model' => \addons\webman\model\PlayerLevel::class,
|
||||
//推广员
|
||||
'player_promoter_table' => 'player_promoter',
|
||||
'player_promoter_model' => \addons\webman\model\PlayerPromoter::class,
|
||||
//推广员分润记录
|
||||
'promoter_profit_record_table' => 'promoter_profit_record',
|
||||
'promoter_profit_record_model' => \addons\webman\model\PromoterProfitRecord::class,
|
||||
//推广员分润结算记录
|
||||
'promoter_profit_settlement_record_table' => 'promoter_profit_settlement_record',
|
||||
'promoter_profit_settlement_record_model' => \addons\webman\model\PromoterProfitSettlementRecord::class,
|
||||
//玩家游戏局
|
||||
'player_game_record_table' => 'player_game_record',
|
||||
'player_game_record_model' => \addons\webman\model\PlayerGameRecord::class,
|
||||
//玩家派彩记录
|
||||
'player_lottery_record_table' => 'player_lottery_record',
|
||||
'player_lottery_record_model' => \addons\webman\model\PlayerLotteryRecord::class,
|
||||
//游戏类型
|
||||
'game_type_table' => 'game_type',
|
||||
//二维码
|
||||
'qrcode_table' => 'qr_code',
|
||||
'qrcode_model' => \addons\webman\model\Qrcode::class,
|
||||
'qrcode_batch_table' => 'qr_code_batch',
|
||||
'qrcode_batch_model' => \addons\webman\model\QrcodeBatch::class,
|
||||
'qrcode_owner_table' => 'qr_code_owner',
|
||||
'qrcode_owner_model' => \addons\webman\model\QrcodeOwner::class,
|
||||
//es支付
|
||||
'sepay_recharge_table' => 'sepay_recharge_list',
|
||||
'sepay_recharge_model' => \addons\webman\model\SepayRecharge::class,
|
||||
//奖品
|
||||
'prize_table' => 'prizes',
|
||||
'prize_model' => \addons\webman\model\Prize::class,
|
||||
//抽奖记录
|
||||
'draw_records_table' => 'draw_records',
|
||||
'draw_records_model' => \addons\webman\model\DrawRecord::class,
|
||||
],
|
||||
'cache' => [
|
||||
//缓存目录
|
||||
'directory' => runtime_path()
|
||||
],
|
||||
//后台前端UI配置
|
||||
'ui' => [
|
||||
//语言
|
||||
'lang' => [
|
||||
// 默认语言
|
||||
'default' => config('app.locale', 'zh-CN'),
|
||||
//语言列表
|
||||
'list' => [
|
||||
'zh-CN' => '中文简体',
|
||||
'en' => 'English',
|
||||
'Ma-my' => 'Melayu', // 马来语(马来西亚)
|
||||
]
|
||||
],
|
||||
//布局 headerSider顶部侧边 sider侧边
|
||||
'layout' => 'headerSider',
|
||||
//主题 light 暗黑dark
|
||||
'theme' => 'light',
|
||||
//主题色
|
||||
'theme_color' => '#1890ff',
|
||||
//菜单主题 dark light
|
||||
'menu_theme' => 'light',
|
||||
//导航模式 sideTopMenuLayout sideMenuLayout topMenuLayout
|
||||
'navigationMode' => 'sideTopMenuLayout',
|
||||
//header背景色
|
||||
'header_background' => '#1890ff',
|
||||
//侧边栏
|
||||
'sidebar' => [
|
||||
//选中色
|
||||
'color' => '#1890ff',
|
||||
//背景色
|
||||
'background' => '#121929',
|
||||
//宽度
|
||||
'width' => 200,
|
||||
//是否收起状态
|
||||
'collapsed' => false,
|
||||
//显示隐藏
|
||||
'visible' => true,
|
||||
//菜单并排数量
|
||||
'menu_num' => 1
|
||||
],
|
||||
//多页标签
|
||||
'tabs' => true,
|
||||
//登录路由
|
||||
'loginRoute' => '/ex-admin/login/index',
|
||||
//公用渲染路由前缀
|
||||
'commonRoutePrefix' => 'common/',
|
||||
//后台渲染路由前缀
|
||||
'adminRoutePrefix' => '',
|
||||
],
|
||||
// 币种
|
||||
'currency' => [
|
||||
'CYN' => 'CYN',
|
||||
'TWD' => 'TWD',
|
||||
'USD' => 'USD',
|
||||
'JPY' => 'JPY',
|
||||
'RM' => 'RM',
|
||||
],
|
||||
'admin_node' => config('admin_node'),
|
||||
'channel_node' => config('channel_node'),
|
||||
'pay_type' => [
|
||||
'人工充值',
|
||||
'EsPay',
|
||||
'OnePay',
|
||||
'SKL99',
|
||||
],
|
||||
'game' => [
|
||||
262 => '转盘',
|
||||
263 => '砸金蛋',
|
||||
264 => '盲盒',
|
||||
265 => '刮刮乐',
|
||||
266 => 'TURN',
|
||||
267 => '摇色子',
|
||||
]
|
||||
];
|
||||
Reference in New Issue
Block a user