修复队列

This commit is contained in:
2023-03-27 20:10:03 +08:00
parent 872e53fb47
commit f4d8428b9e
4 changed files with 0 additions and 166 deletions
@@ -1,30 +0,0 @@
<?php
declare(strict_types=1);
namespace App\Amqp\Producer;
use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerDelayedMessageTrait;
use Hyperf\Amqp\Message\ProducerMessage;
use Hyperf\Amqp\Message\Type;
/**
* 取消未支付订单生产者-延迟队列
*/
#[Producer]
class CancelUnpayOrdersDelayDirectProducer extends ProducerMessage
{
use ProducerDelayedMessageTrait;
protected string $exchange = 'amqp.delay.direct';
protected string $type = Type::DIRECT;
protected string|array $routingKey = 'CancelUnpayOrders';
public function __construct($data)
{
$this->payload = $data;
}
}
@@ -1,21 +0,0 @@
<?php
declare(strict_types=1);
namespace App\Amqp\Producer;
use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerMessage;
use Hyperf\Amqp\Message\Type;
/**
* 药师处方分配队列
*/
#[Producer(exchange: 'amqp.direct', routingKey: 'PrescriptionDistribute')]
class PrescriptionDistributePhProducer extends ProducerMessage
{
public function __construct($data)
{
$this->payload = $data;
}
}