配置 IM 中的文件上传到阿里云OSS;更新 路由白名单
Build Docker / build (push) Canceled after 0s

This commit is contained in:
haomingming
2026-08-20 11:38:23 +08:00
parent e836e84421
commit 4ad8d5fa6f
4 changed files with 136 additions and 0 deletions
@@ -0,0 +1,27 @@
<?php
declare(strict_types=1);
namespace App\Amqp\Producer;
use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerMessage;
/**
* IM 多媒体文件异步下载并上传 OSS
*/
#[Producer(exchange: 'amqp.direct', routingKey: 'UploadImMedia')]
class UploadImMediaProducer extends ProducerMessage
{
/**
* @param array $data
* [
* "message_key" => "消息唯一ID",
* "msg_type" => "消息类型",
* "msg_content" => "消息具体内容(数组)"
* ]
*/
public function __construct(array $data)
{
$this->payload = $data;
}
}