This commit is contained in:
2025-10-29 10:13:56 +08:00
parent c519d5d8ea
commit ae24fea621
4 changed files with 8 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ use support\Log;
use Webman\RedisQueue\Redis;
// 生日有礼
define('AMQP_DEBUG', true);
$host = config('cons.mq.host');
$port = config('cons.mq.port');
$user = config('cons.mq.user');
@@ -43,6 +43,7 @@ use Webman\RedisQueue\Redis;
};
$rabbit_channel->basic_consume($queue, '', false, false, false, false, $callback);
while ($rabbit_channel->is_consuming()) {
Log::info('birthday.gift.sms-MQ准备调用wait');
$rabbit_channel->wait();
}
$rabbit_channel->close();