This commit is contained in:
Default
2025-03-20 21:10:55 +08:00
parent 62d2e78347
commit b09e4fca11
41 changed files with 1369 additions and 6258 deletions

View File

@@ -5,7 +5,7 @@
return [
// 指令定义
'commands' => [
'task' => 'app\task\command\Task',
'db:manage' => 'app\task\command\DatabaseCommand',
'task' => 'minserver\ServerConsole',
'db:manage' => 'db\DatabaseManage',
],
];

View File

@@ -59,5 +59,6 @@ return [
],
// 更多的数据库配置信息
],
];

19
code/config/mongodb.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
return [
// 服务器地址
'hostname' => env('MONGO_HOST', '127.0.0.1'),
// 端口
'hostport' => env('MONGO_PORT', '3306'),
// 用户名
'username' => env('MONGO_USER', 'root'),
// 密码
'password' => env('MONGO_PASSWORD', ''),
// 数据库名
'database' => env('MONGO_DB', ''),
];

View File

@@ -43,14 +43,14 @@ return [
[
'Name' => 'Inner Consume',
'Num' => env('TASK_PROCESS_NUM_01', 4),
'callback' => [app\task\core\Listen::class, 'innerConsume'],
'callback' => [app\task\module\Listen::class, 'innerConsume'],
],
# 内部循环任务进程组 优先队列消费者
[
'Name' => 'Inner Consume',
'Num' => env('TASK_PROCESS_NUM_02', 2),
'callback' => [app\task\core\Listen::class, 'innerConsume02'],
'callback' => [app\task\module\Listen::class, 'innerConsume02'],
],
],