This commit is contained in:
2025-10-17 10:22:02 +08:00
parent 1a1040b514
commit 7e93bee4fa
11 changed files with 64 additions and 652 deletions

View File

@@ -38,11 +38,11 @@ class BirthdayGiftSms extends Command
protected function execute(InputInterface $input, OutputInterface $output): int
{
$host = RabbitMqConfig::$host;
$port = RabbitMqConfig::$port;
$user = RabbitMqConfig::$user;
$password = RabbitMqConfig::$password;
$queue = RabbitMqConfig::$queue_t . '-birthday.gift.sms';
$host = config('cons.mq.host');
$port = config('cons.mq.port');
$user = config('cons.mq.user');
$password = config('cons.mq.password');
$queue = config('cons.mq.queue_t') . '-birthday.gift.sms';
// 防止空闲时间断线必须设置心跳
$connection = new AMQPStreamConnection($host, $port, $user, $password,