This commit is contained in:
2025-10-30 10:55:28 +08:00
parent aee35c6d1c
commit 38d37aa416
4 changed files with 8 additions and 8 deletions

View File

@@ -16,7 +16,7 @@ use support\Log;
try {
// define('AMQP_DEBUG', true);
define('AMQP_DEBUG', true);
// 防止空闲时间断线必须设置心跳
$connection = new AMQPStreamConnection($host, $port, $user, $password,
'/',
@@ -28,7 +28,7 @@ try {
60,
null,
false,
30
15
);
$rabbit_channel = $connection->channel();
$rabbit_channel->queue_declare($queue, false, true, false, false, false, [