add tmall test command

This commit is contained in:
2025-11-26 09:45:30 +08:00
parent 11e2ea1181
commit a1ed0f2ecc
6 changed files with 202 additions and 133 deletions
@@ -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';
};