add tmall test command
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace App\Platform\Tmall\Producer;
|
||||
|
||||
use Hyperf\Amqp\Annotation\Producer;
|
||||
use App\Platform\OrderProducer;
|
||||
|
||||
#[Producer('tmall.exchange', 'order.tmall')]
|
||||
class TmallOrderProducer extends OrderProducer
|
||||
{
|
||||
# @attention 注解的配置不会在直接 new 实例化时自动应用到对象属性上
|
||||
protected string $exchange = 'tmall.exchange';
|
||||
protected string|array $routingKey = 'order.tmall';
|
||||
};
|
||||
Reference in New Issue
Block a user