chore: 添加静态资源文件和版本配置文件

添加大量图片、字体、音频等静态资源文件,包括用户界面图片、模板文件和安装界面素材
添加系统版本配置文件(.version)和常量定义文件(.constant)
更新供应商依赖文件,包括Symfony VarDumper组件和相关许可证文件
添加验证码配置文件(captcha.php)和.gitignore规则
This commit is contained in:
2026-03-06 20:14:23 +08:00
commit c9a98f342c
4485 changed files with 490986 additions and 0 deletions

105
config/swoole.php Normal file
View File

@@ -0,0 +1,105 @@
<?php
use app\webscoket\Manager;
use Swoole\Table;
return [
'http' => [
'enable' => true,
'host' => '0.0.0.0',
'port' => 20199,
'worker_num' => swoole_cpu_num(),
'options' => [
'package_max_length' => 50 * 1024 * 1024
],
],
'websocket' => [
'enable' => true,
'handler' => Manager::class,
'ping_interval' => 25000,
'ping_timeout' => 60000,
'room' => [
'type' => 'table',
'table' => [
'room_rows' => 4096,
'room_size' => 2048,
'client_rows' => 8192,
'client_size' => 2048,
],
'redis' => [
'host' => '127.0.0.1',
'port' => 6379,
'max_active' => 3,
'max_wait_time' => 5,
],
],
'listen' => [],
'subscribe' => [],
],
'rpc' => [
'server' => [
'enable' => false,
'host' => '0.0.0.0',
'port' => 9000,
'worker_num' => swoole_cpu_num(),
'services' => [
],
],
'client' => [
],
],
//队列
'queue' => [
'enable' => env('QUEUE_ENABLE', true),
'workers' => [
'CRMEB_PRO' => [],
'CRMEB_PRO_BATCH' => [],
'CRMEB_PRO_TASK' => [],
// 'CRMEB_PRO_ERP' => [],
'CRMEB_PRO_LOG' => [],
'CRMEB_PRO_SOCKET' => []
],
],
//热更新
'hot_update' => [
'enable' => env('APP_DEBUG', false),
'name' => ['*.php'],
'include' => [app_path(), root_path('crmeb')],
'exclude' => [],
],
//连接池
'pool' => [
'db' => [
'enable' => true,
'max_active' => swoole_cpu_num() * 4,
'max_wait_time' => 5,
],
'cache' => [
'enable' => true,
'max_active' => swoole_cpu_num() * 4,
'max_wait_time' => 5,
],
//自定义连接池
],
'tables' => [//高性能内存数据库
'user' => [
'size' => 20480,
'columns' => [
['name' => 'fd', 'type' => Table::TYPE_STRING, 'size' => 50],
['name' => 'type', 'type' => Table::TYPE_INT],
['name' => 'uid', 'type' => Table::TYPE_INT],
['name' => 'to_uid', 'type' => Table::TYPE_STRING, 'size' => 50],
['name' => 'tourist', 'type' => Table::TYPE_INT]
]
]
],
//每个worker里需要预加载以共用的实例
'concretes' => [],
//重置器
'resetters' => [],
//每次请求前需要清空的实例
'instances' => [],
//每次请求前需要重新执行的服务
'services' => [],
];